Gold
Hex #FFD700, rgb(255 215 0). A yellow CSS named color.
Open in palette generatorGold color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Gold
Gold is a very light saturated yellow with the hex code #FFD700. In RGB it is made of 255 red, 215 green and 0 blue; in HSL its hue is 51°, with 100% saturation and 50% lightness. Its perceptual lightness (OKLCH L) is 88.7%.
It is a CSS named color, so you can write "gold" anywhere CSS accepts a color. Against white it has a contrast ratio of 1.40:1 and against black 14.97:1, so black text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Gold mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Gold 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Gold
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Analogous
Triadic
Split complementary
Contrast and readability
WCAG 2 contrast of Gold with white and black. The readable text color on Gold is black.
On white1.40:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc 19
On black14.97:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc -84
Test any pair in the contrast checker.
Color blindness preview
How Gold appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#F0D300
- Deuteranopia#FADF24
- Tritanopia#FFC4B7
- Protanomaly#F4D500
- Deuteranomaly#FADC19
- Tritanomaly#FFD080
- Achromatopsia#DADADA
Colors similar to Gold
The closest named colors by perceptual difference (OKLab).
Use Gold in CSS and Tailwind
.gold {
color: gold; /* #FFD700 */
background-color: rgb(255 215 0);
border-color: oklch(88.7% 0.182 95.3);
}/* Tailwind CSS v4: bg-gold-500, text-gold-700... */
@theme {
--color-gold-50: #FFFAE8;
--color-gold-100: #FFEDA8;
--color-gold-200: #FFD700;
--color-gold-300: #DFBC00;
--color-gold-400: #B69900;
--color-gold-500: #9C8300;
--color-gold-600: #867000;
--color-gold-700: #6C5A00;
--color-gold-800: #574800;
--color-gold-900: #473A00;
--color-gold-950: #1C1600;
}
<!-- or the exact color, no config -->
<div class="bg-[#FFD700] text-[#000000]">…</div>