Gold #FFD700

Gold color (#FFD700)

Gold is one of the 148 CSS named colors. Use the keyword gold anywhere CSS accepts a color, or its hex code #FFD700, which is rgb(255, 215, 0) in RGB.

It is a light, vivid warm color with a hue angle of 51° on the HSL color wheel and a perceived lightness of 89% in OKLCH. On a gold background, black text gives the higher contrast at 14.97:1, which passes WCAG AA for normal text.

Gold color codes

CSS name gold
HEX #FFD700
HEX (8-digit) #FFD700FF
RGB rgb(255, 215, 0)
HSL hsl(51, 100%, 50%)
HSV / HSB hsv(51, 100%, 100%)
OKLCH oklch(88.7% 0.1822 95.3)
CMYK cmyk(0%, 15.7%, 100%, 0%)

Contrast with white and black

WCAG 2 contrast ratios and APCA lightness contrast (Lc) for gold used as text and as a background.

Aa Sample text
Gold text on white
1.40:1 WCAG Lc 19.2 APCA Fails AA
Aa Sample text
Gold text on black
14.97:1 WCAG Lc -84.3 APCA Passes AA
Aa Sample text
White text on gold
1.40:1 WCAG Lc -21.9 APCA Fails AA
Aa Sample text
Black text on gold
14.97:1 WCAG Lc 84.5 APCA Passes AA

Tints and shades of gold

Tints mix gold with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.

Tints

Shades

Colors that go with gold

Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.

Complementary

Analogous

Triadic

Split-Complementary

Gold with color blindness

Approximately how gold appears with each type of color vision deficiency. Test full designs with the color blindness simulator.

Using gold in CSS

.element {
  color: gold;
  background-color: #ffd700;
  border-color: rgb(255 215 0 / 50%);
  outline-color: oklch(88.7% 0.1822 95.3);
}

Similar named colors

See all shades of yellow or browse every CSS color name.

Related tools