Colors · value from the CSS Color Module Level 4 (W3C)
Gold color: hex code #FFD700, RGB and palettes
Gold is #FFD700 (RGB 255, 215, 0), a CSS named color: a bright, pure yellow, not a metallic finish. Black text reaches 14.97:1 on it; white text is only 1.40:1.
- HEX
#FFD700- RGB
rgb(255, 215, 0)- HSL
hsl(51, 100%, 50%)
Best text on it: black at 14.97:1
Every code for Gold
- HEX
#FFD700 - RGB
rgb(255, 215, 0) - HSL
hsl(51, 100%, 50%) - HSV
51°, 100%, 100% - CMYK
0%, 16%, 100%, 0% - Lab
lab(87.5% 2.9 86.6) - OKLCH
oklch(88.7% 0.182 95.3) - Decimal
16766720
Tints, shades and tones
From white to black in 10% steps, with Gold in the middle. Tap a code to copy it.
- 90%#FFFBE6
- 80%#FFF7CC
- 70%#FFF3B3
- 60%#FFEF99
- 50%#FFEB80
- 40%#FFE766
- 30%#FFE34D
- 20%#FFDF33
- 10%#FFDB1A
- Base#FFD700
- 10%#E6C200
- 20%#CCAC00
- 30%#B39700
- 40%#998100
- 50%#806C00
- 60%#665600
- 70%#4D4100
- 80%#332B00
- 90%#1A1600
Tones (mixed with gray)
- 10%#F2CE0D
- 20%#E6C61A
- 30%#D9BD26
- 40%#CCB433
- 50%#C0AC40
- 60%#B3A34D
- 70%#A69A5A
- 80%#999166
- 90%#8D8973
Matching colors
Gold in 3D color space
OKLab, the space ColorPlum does its math in: lightness runs up the pole, hue goes around it and saturation grows outward. The faint shell is every color a screen can show (saturation is drawn wider than lightness so hues separate). Drag to turn it.
- Gold
- Triad #00FFD7
- Triad #D700FF
- Complement
- 50% tint
- 50% shade
Gold in use
Card body text stays dark for reading; gold carries the header and the button.
Shop nowTagHeadline in Gold
A paragraph with a link in dark text, because this color is too light for text on white; use it for fills instead.
How it looks with color-vision deficiency
A simulation (Machado and colleagues, 2009) of how the color and its complement read without one type of cone.
- Typical color vision
#FFD700 - Protanopia (no red cones)
#F0D300 - Deuteranopia (no green cones)
#FADF24 - Tritanopia (no blue cones)
#FFC4B7
Contrast and readability
| Pairing | Ratio | WCAG 2.2 |
|---|---|---|
| as text on white | 1.40:1 | AA AA large AAA |
| as text on black | 14.97:1 | AA AA large AAA |
| white text on it | 1.40:1 | AA AA large AAA |
| black text on it | 14.97:1 | AA AA large AAA |
| on your background | 1.22:1 | AA AA large AAA |
Export
:root {
--gold: #ffd700;
--gold-rgb: 255 215 0;
--gold-on: #000000;
}On this page
In CSS, gold is the value #FFD700, and it is a bright yellow. That surprises people who expect the look of a ring or a medal. Metallic gold is not one color: it is a surface that shifts between dark brown, warm yellow and near-white highlights as light bounces off it. A single flat hex code can't hold all of that, so the CSS name stands for the yellow that suggests gold, not for the metal.
What the codes mean
In RGB, gold is 255, 215, 0: red at full strength, green at about 84%, and no blue. In HSL it is hue 51°, 100% saturation and 50% lightness. The CMYK estimate is 0%, 16%, 100%, 0%. Because blue is zero, the color is as pure as a screen yellow gets at that hue, and printers often struggle to hit it without a special ink.
The xkcd survey list gives a different "gold": #DBB40C, a duller, deeper mustard-like yellow that sits 10.8 away in OKLab distance. The nearest survey names to CSS gold are "sunflower yellow" (#FFDA03) and "dandelion" (#FEDF08), both under 2 away. In the CSS list, khaki (#F0E68C), 7.7 away, and yellow (#FFFF00), 9.9 away, are the neighbors. Yellow on its own is covered in the yellow gradients page.
Using gold well
- Text on it: black measures 14.97:1. White text fails at 1.40:1.
- As text: gold on white is the same 1.40:1, so it is only for large decoration. On black it works well, and on the 90% shade, #1A1600, it reads at 12.92:1.
- Faking metal: a gradient from the 40% shade, #998100, through gold to the 40% tint, #FFE766, gives a convincing sheen. See the gradient generator to try it.
- Pairings: black, deep red and navy suit it; see black and gold and red and gold palettes.
Worked example
You are preparing a slide for an end-of-year awards ceremony and want a trophy feel. Use a near-black background (#1A1600) with the winner's name in gold. That pair measures 12.92:1, so the text stays bold from the back of a hall. Add a thin horizontal rule that runs from the 40% shade to gold to the 40% tint as a gradient; it hints at brushed metal without needing an image. Keep any small caption text in white or the pale tint, never in the darker gold shades on the dark background, because their contrast is lower than the main gold.
Gold, yellow and mustard
Gold sits between pure yellow and mustard. It is warmer than #FFFF00 and brighter than the survey's #DBB40C. For metallic effects in print, designers use special foils or inks, and a flat swatch is only a stand-in.
Sources
- W3C, CSS Color Module Level 4: named colors and color conversions (checked 2026-11-10) w3.org
- xkcd, Color survey results: the 954 most common color names (Randall Munroe, 2010; checked 2026-11-10) xkcd.com
- W3C, Web Content Accessibility Guidelines (WCAG) 2.2: contrast minimum (checked 2026-11-10) w3.org