websafe colours, web palette
The websafe palette consists of 216 colours that when displayed on a 256-colour (8 bit) monitor will be displayed as continuous flat colours.
These colours will be rendered as flat colours on both Windows and Macintosh platforms – as to hue and saturation, well…
Hexadecimal system (base 16)
CSS SHORTHAND
When defining colours in CSS, hexadecimal codes may be abbreviated to a single-digit for each of the 2-digit pairs; e.g. #FF0033
may be abbreviated to #F03
.
The hexadecimal counting system consists of 16 unique symbols;
- numbers from 0-9
- letters from A-F
Counting in hexadecimal: 0 1 2 3 4 5 6 7 8 9 A B C D E F
, where 0
is null and F
is the highest value.
Specifying websafe colours (using hexadecimal notation)
Colours in HTML are specified by a hash (#)
followed by a six-digit hexadecimal number. This number consists of three 2-digit numbers corresponding to red, green and blue (RGB) values.
#XXxxxx = red
#xxXXxx = green
#xxxxXX = blue
The websafe (216 colour) palette consists of a subset of the possible hexadecimal combinations and is restricted to three pairs of the same value at 20% increments, i.e.:
00 33 66 99 CC FF
Examples:
#000000 = black
#FF0000 = 100% red
#00FF00 = 100% green
#0000FF = 100% blue
#FFFFFF = white
Jamie
Latest posts by Jamie (see all)
- Facebook Alternatives 2021 – Social Networks That Won’t Sell Your Data - February 3, 2021
- How To Make Money On Twitch – 2021 Ultimate Guide - February 2, 2021
- .IO vs .COM – Which Domain Extension Should You Choose? – 2021 Guide - January 13, 2021