Gold color #FFD700
rgb(255, 215, 0) · oklch(88.7% 0.182 95.3)
Gold (#FFD700) is a light, vivid, warm yellow. It mixes 100% red, 84% green and 0% blue, with a perceived lightness of 88.7% in OKLCH. Black text reads best on it (14.97:1 vs 1.40:1). The closest other CSS color is Khaki (#F0E68C). For people with tritanopia it shifts the most, toward #FFC4B7.
Gold color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of gold
Shades mix gold with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
Gold as a UI color scale (50–950)
An 11-step scale for design systems, with gold placed at step 200. Copy it as a Tailwind v4 theme below.
Colors that go with gold
Harmonies are computed on the OKLCH hue wheel, keeping gold’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is gold accessible? Contrast with white and black
1.40:1
AA fail AA large fail AAA fail
14.97:1
AA pass AA large pass AAA pass
- As a background, gold works best with black text.
- For body text on white, use the darker variant (the closest color that passes AA, 4.5:1).
How gold looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#f0d300 Red-blind. Reds look dark and brownish; red and green are easily confused.
#fadf24 Green-blind, the most common strong form. Red, green, orange and brown look similar.
#ffc4b7 Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#dadada Total color blindness, very rare. Only lightness differences are visible.
Colors similar to gold
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use gold in CSS and Tailwind
CSS custom properties
:root {
--gold: #ffd700;
--gold-rgb: 255 215 0;
}
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
Tailwind v4 theme
@theme {
--color-gold-50: #f8f7f3;
--color-gold-100: #f1eddd;
--color-gold-200: #ffd700;
--color-gold-300: #d8c063;
--color-gold-400: #bba02d;
--color-gold-500: #9e8400;
--color-gold-600: #836d00;
--color-gold-700: #675711;
--color-gold-800: #504518;
--color-gold-900: #3d3518;
--color-gold-950: #231f10;
}
Make a gradient from gold: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.