wEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML Colors


Portable PC and TVs screens show shading by joining Red,green,blue light.


Color Names

With CSS, hues can be set by utilizing shading names:

Example

Color Name
 Red
 Orange
 Yellow
 Cyan
 Blue
Try it yourself »

CSS bolsters 140 standard shading names.


RGB (Red, Green, Blue)

RGB shading esteems we can utilize: rgb(red, green, blue)

In the html red, green, and blue characterizes the force of the shading somewhere in the range of 0 and 255.

For model, rgb(255,0,0) is shown as red, since red is set to its most astounding worth (255) and the others are set to 0. Test by blending the RGB esteems below:

Red Green Blue
255 0 0

Example

Color RGB
  rgb(255,0,0)
  rgb(255,255,0)
  rgb(0,255,0)
  rgb(0,255,255)
  rgb(0,0,255)
Try it yourself »

Shades of dark are frequently characterized utilizing measure up to qualities for all the 3 light sources:

Example

Color RGB
  rgb(0,0,0)
  rgb(128,128,128)
  rgb(255,255,255)
Try it yourself »

Hexadecimal Colors

With HTML, RGB qualities can likewise be indicated utilizing hexadecimal shading esteems in the structure: #RRGGBB, where RR (red), GG (green) and BB (blue) are hexadecimal values among 00 and FF (same as decimal 0-255).

For model, #FF0000 is shown as red, since red is set to its most astounding worth (FF) and the others are set to the least esteem (00).

Example

Color HEX
  #FF0000
  #FFFF00
  #00FF00
  #00FFFF
  #0000FF
Try it yourself »

Shades of dim are frequently characterized utilizing square with qualities for all the 3 light sources:

Example

Color HEX
  #000000
  #808080
  #FFFFFF
Try it yourself »