Skip to content

Gold Color

Digital gold #FFD700 — a bright, warm yellow — with every value you need for CSS and print.

HEX
#FFD700
RGB
rgb(255, 215, 0)
HSL
hsl(51, 100%, 50%)
HSV
hsv(51, 100%, 100%)
CMYKapproximation
cmyk(0%, 16%, 100%, 0%)
CSS name
gold

Open gold in the color picker to adjust it or copy other formats.

About gold

#FFD700 is the CSS named color gold: a saturated yellow that leans slightly toward orange. It is the gold you get when you write color: gold in CSS, and it is the most widely used digital value for the name.

A screen cannot show real metal. What makes gold look metallic in a design is variation: highlights, shadows and reflections. Designers usually fake it with a gradient that runs from a light gold through a mid tone into a darker, browner gold such as darkgoldenrod (#B8860B). In print, true metallic gold needs a special metallic ink or foil; the CMYK values below only approximate the flat color.

#FFD700 is the value of the CSS named color gold, defined in the CSS Color specification and identical in every browser.

Other colors called gold

  • Metallic gold #D4AF37A muted, less saturated gold often used to suggest real metal.
  • Goldenrod (CSS) #DAA520A deeper, more orange CSS named gold tone.

Gold shades and tints

Shades mix gold with black, tints mix it with white — useful for hover states, borders and backgrounds. Click a swatch to copy its HEX code.

Colors that go with gold

Color harmonies based on the hue of #FFD700: its complement on the opposite side of the color wheel, its analogous neighbours and its triadic partners.

Gold contrast and readability

On a gold background, black text reads best (14.97:1). Here is how gold works as a text color:

#FFD700 on white

1.40:1

Normal text sample

Large text

  • AA normal text (4.5:1)Fail
  • AA large text (3:1)Fail
  • AAA normal text (7:1)Fail
  • AAA large text (4.5:1)Fail

#FFD700 on black

14.97:1

Normal text sample

Large text

  • AA normal text (4.5:1)Pass
  • AA large text (3:1)Pass
  • AAA normal text (7:1)Pass
  • AAA large text (4.5:1)Pass

Gold is very light, so gold text on a white background is hard to read. Use gold as a background or accent with dark text, or put gold text on navy, black or deep green, where it reads well and looks premium.

Using gold in CSS and HTML

CSS custom property
:root {
  --color-gold: #FFD700;
}

.highlight {
  background-color: var(--color-gold);
}
Background and text color
.banner {
  background-color: gold;
  color: #000000;
}

.label {
  color: #FFD700;
  border: 2px solid rgb(255, 215, 0);
}
Inline style in HTML
<p style="background-color: #FFD700; color: #000000;">
  Gold background
</p>