Pages - HTML - Colours

HTML Colours

In HTML colours are defined using a hexadecimal (hex) notation. A hex notation contains six digits, two for each of Red, Green and Blue. The highest value is 255 (hex FF), and the lowest value is 0 (hex 00). Hex values should be started with a # sign.

Colour Examples

Colour Example HEX Colour RGB Colour
#000000rgb(0,0,0)
#FFFFFFrgb(255,255,255)
#FF0000rgb(255,0,0)
#00FF00rgb(0,255,0)
#0000FFrgb(0,0,255)
#00FFFFrgb(0,255,255)
#FF00FFrgb(255,0,255)
#FFFF00rgb(255,255,0)

Colourful Possibilities

With Red, Green and Blue having ranges between 0 and 255 means you get 256 brightness possibilities per colour, giving you well over 16 million unique colours to utilise.

Shades of Grey

By making RGB values all equal you have an unbiased light, causing shades of grey.

Grey Shades HEX Colour RGB Colour
#000000rgb(0,0,0)
#080808rgb(8,8,8)
#101010rgb(16,16,16)
#181818rgb(24,24,24)
#202020rgb(32,32,32)
#282828rgb(40,40,50)
#303030rgb(48,48,48)
#383838rgb(56,56,56)
#404040rgb(64,64,64)
#484848rgb(72,72,72)
#505050rgb(80,80,80)
#585858rgb(88,88,88)
#606060rgb(96,96,96)
#686868rgb(104,104,104)
#707070rgb(112,112,112)
#787878rgb(120,120,120)
#808080rgb(128,128,128)
#888888rgb(136,136,136)
#909090rgb(144,144,144)
#989898rgb(152,152,152)
#A0A0A0rgb(160,160,160)
#A8A8A8rgb(168,168,168)
#B0B0B0rgb(176,176,176)
#B8B8B8rgb(184,184,184)
#C0C0C0rgb(192,192,192)
#C8C8C8rgb(200,200,200)
#D0D0D0rgb(208,208,208)
#D8D8D8rgb(216,216,216)
#E0E0E0rgb(224,224,224)
#E8E8E8rgb(232,232,232)
#F0F0F0rgb(240,240,240)
#F8F8F8rgb(248,248,248)
#FFFFFFrgb(256,256,256)

Want to know more or have questions?

We try and make our website helpful to viewers and clients, if you have any tips or suggestions please contact us. If you like this article please Share on Facebook.

Adverts