About gold
In CSS, gold (#FFD700) is a bright, warm yellow. It is gold as a flat color: a screen color cannot shine like metal, so a metallic look needs a gradient or texture of several yellows and browns.
Deeper golds among the CSS named colors are goldenrod (#DAA520) and darkgoldenrod (#B8860B), and khaki (#F0E68C) and palegoldenrod (#EEE8AA) are softer, paler versions.
Shades and tints of gold
Gold lands on the 200 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For gold mixed with white, black or gray in even steps, use the tint and shade generator.
Colors that go with gold
Partner hues are picked on the OKLCH color wheel at a mid lightness, because gold itself is very light.
Complementary: the opposite hue
Open in the palette generator · Compare the screen and painter's complements of gold
Analogous: neighboring hues 30° either side
Open in the palette generator · See analogous and monochromatic colors of gold on three wheels
Triadic: three hues 120° apart
Split complementary: the two hues beside the complement
Text on gold
| Text | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White | 1.4:1 | Fail | Fail | Fail |
| Black | 14.97:1 | Pass | Pass | Pass |
Check other pairs in the color contrast checker.
Similar named colors
The CSS named colors closest to gold, by deltaE OK distance.
See all 148 on the color names page.
Closest Tailwind CSS colors
amber-300 v4: amber-300, #FFD230, deltaE OK 0.019
yellow-300 v3: yellow-300, #FDE047, deltaE OK 0.026
In Tailwind CSS v4 it is amber-300 (#FFD230), and in v3 yellow-300 (#FDE047). For the exact color, use an arbitrary value such as bg-[#ffd700]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.
Gold with color vision deficiency
An approximation of how gold may look with protanopia, deuteranopia and tritanopia (simulated with Machado, Oliveira and Fernandes, 2009), and with achromatopsia, shown as a gray of the same luminance.
Test a whole palette or image in the color blindness simulator.
Using gold in code
.example {
color: gold; /* named color */
background-color: #ffd700; /* hex */
border-color: rgb(255, 215, 0);
}
