HEX colour codes are six-digit hexadecimal values used in HTML, CSS and digital design to define precise colours. Each code represents a combination of Red, Green and Blue channels in base-16 notation. Browse all 140 named CSS colours below, use the colour picker to explore any shade, or search for a specific HEX code.
Pick any colour to see its HEX code. Click the swatch to open the picker, then use the HEX value anywhere in your design.
A HEX colour code is a six-character string preceded by a hash sign (#) that represents a colour in the RGB colour model. The six characters are split into three pairs: the first two define the Red channel, the middle two define Green and the last two define Blue. Each pair is a hexadecimal (base-16) number ranging from 00 (0 in decimal, no intensity) to FF (255, full intensity).
For example, #FF0000 is pure red (Red=255, Green=0, Blue=0), #00FF00 is pure green and #0000FF is pure blue. Mixing channels produces all other colours: #FFFF00 is yellow (Red+Green), #FF00FF is magenta (Red+Blue) and #00FFFF is cyan (Green+Blue). The shorthand three-character form (e.g. #F00) expands by doubling each digit (#FF0000).
HEX codes are the most common way to specify colours in HTML and CSS. They are supported in every modern browser and design tool. For print work, convert HEX to CMYK or Pantone using our colour detail pages.