Color library

Hex color codes

The color library holds 254 named colors across 10 families, each with its hex code. Search by name, hex or family, filter by lightness or by whether a color clears WCAG AA, or paste any hex at all to find its nearest matches. Open a color for its full breakdown, or build a whole scheme around it in the palette generator.

254 of 254 colors

What are hex color codes?

A hex color code writes a screen color as a hash sign followed by six hexadecimal digits, read in pairs for the red, green and blue channels. Each pair runs from 00 to FF, which is 0 to 255 in decimal, so #FF0000 is full red with no green or blue.

Common hex color codes with their RGB values. Open a color for every other model, its shades and its contrast.
ColorHexRGB
Black#000000rgb(0, 0, 0)
White#FFFFFFrgb(255, 255, 255)
Red#FF0000rgb(255, 0, 0)
Green#008000rgb(0, 128, 0)
Blue#0000FFrgb(0, 0, 255)
Yellow#FFFF00rgb(255, 255, 0)
Gray#808080rgb(128, 128, 128)
Navy#000080rgb(0, 0, 128)
Purple#800080rgb(128, 0, 128)
Pink#FFC0CBrgb(255, 192, 203)

Browse by family

Each family has its own page with a lightness-sorted table, OKLCH values and notes on where that hue tends to go wrong.

"Clears AA on white" counts colors usable as normal text on a white background at 4.5:1 or better.
FamilyColorsClears AA on whiteRange
Red colors1812
Orange colors180
Yellow colors180
Green colors308
Cyan colors182
Blue colors3013
Purple colors3115
Pink colors275
Brown colors2715
Neutral colors3710

How to use the color library

Every color links to its own page with a full technical breakdown: all 8 color models, a shade and tint ramp, the nearest CSS keyword and Tailwind token, and a contrast table against the text colors people actually use. As a designer you can browse a family to find a starting hue, take a ready-made ramp, then open the palette generator to lock that hue and generate matching colors with contrast checked. As a developer you can jump straight to a page and copy the exact value.

Only these 254 curated names have pages. Any other hex value returns 404 on purpose: a page for every possible hex would be 16,777,216 near-identical pages, which is how a site teaches a search engine that it is not worth crawling. Paste an unlisted hex into the search above and you get its nearest matches instead, which answers the same question without the pages.

Take the whole thing as data

The library is published as static JSON under the API, released CC0, with CORS open and no key. If you want the contrast relationships rather than the colors, the contrast matrix has every pair.

Want to convert a color that is not in the list? The color converter handles any value, and the hex to RGB converter is the fastest route for that single common jump.

Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.