Color directory
Popular colors with their HEX, RGB, HSL and CMYK values, shades and tints, matching colors, contrast ratios and ready-to-copy CSS.
Reds & pinks
Oranges & browns
Yellows & golds
Greens & teals
Blues
Purples
Whites, grays & blacks
Where do these color values come from?
Many color names — gold, teal, navy or khaki — are CSS named colors with one exact value that every browser uses, and their pages use that value. Other names, such as cream, sage green, burgundy or emerald green, have no official digital definition; their pages show a commonly used representative value and point out the usual variations. Where a CSS value differs from what people usually mean by the name (CSS khaki is much paler than khaki fabric), the page explains the difference.
How to use these color codes
Every color page lists the HEX, RGB, HSL and CMYK value with a copy button, plus ready-made CSS: a custom property, background and text examples and an inline HTML style. Shades and tints give you darker and lighter steps for hover states and borders, and the matching colors show complementary, analogous and triadic partners.
Before using a color for text, check the contrast section: light colors such as gold, cream or sky blue need dark text, and many mid-tones fail WCAG with both black and white for body text.
Find and convert any color
Only a few colors have names. Use the color picker to find any color, the image color picker to take one from a photo, and the HTML color codes list for all 148 CSS color names. Convert values with HEX to RGB, RGB to HEX, RGB to CMYK and CMYK to RGB. Beyond colors, the full list of developer tools covers HTML, JSON, CSS, encoding and more.
Frequently asked questions
- What is a color code?
- A color code is a way to write a color for screens. HEX codes such as #FF6347 and RGB values such as rgb(255, 99, 71) describe the same color as amounts of red, green and blue; HSL describes it by hue, saturation and lightness.
- How do I use a color code in HTML and CSS?
- Put it in a CSS property, for example color: #FF6347; or background-color: rgb(255 99 71);. In HTML, use a style attribute or, better, a class with the color in your stylesheet. Each color page has copy-ready snippets.
- Why do some colors have more than one HEX code?
- Names like cream, sage green or burgundy have no official digital value, so designers use slightly different codes. Each page shows the most common value and the usual alternatives; CSS named colors such as gold or teal have exactly one value.
- Are the CMYK values exact?
- No. They are the standard profile-free conversion of the screen color. Printed results depend on the press, paper and color profile, so check important colors with a printed proof.