DEV Community

Jacopo Valanzano
Jacopo Valanzano

Posted on

HTML Color Codes

HTML color codes may be represented in hexadecimal triplets; six-digit, three-bytes.
There is no informational difference between RGB and HEX colors.

#ff0000 Red

- #ff0000
- rgb(255, 0, 0)
Enter fullscreen mode Exit fullscreen mode

#00ff00 Green

+ #00ff00
+ rgb(0, 255, 0)
Enter fullscreen mode Exit fullscreen mode

#0000ff Blue

  #0000ff
  rgb(0, 0, 255)
Enter fullscreen mode Exit fullscreen mode

The sRGB uses 24 bits to specify a color and can produce 16,777,216 different color combinations.

color-table-primary

Top comments (0)