Home / Colors / Gold hex code

Gold hex code

A rich yellow used on screens to suggest the metal.

#FFD700 Gold
HEX#FFD700
RGBrgb(255, 215, 0)
HSLhsl(51, 100%, 50%)
HSVhsv(51, 100%, 100%)
CMYKcmyk(0%, 16%, 100%, 0%)
Advertisement

About gold

A rich yellow used on screens to suggest the metal. This is the CSS gold. Its hex code is #FFD700, which is rgb(255, 215, 0): 255 red, 215 green and 0 blue on a scale of 0 to 255.

Other values you'll see for gold: #D4AF37 (metallic gold, a darker, duller tone).

Gold is a warm color.

Gold tints and shades

Lighter tints (mixed with white) and darker shades (mixed with black) of gold. Click any of them to copy its hex code.

Colors that go with gold

Complementary

The opposite color on the color wheel, for strong contrast.

Analogous

Neighbors on the color wheel, for a calm, matching look.

Triadic

Three colors evenly spaced around the wheel, for a balanced, lively palette.

Split complementary

The two colors either side of the complement: contrast without clashing.

Text on gold

White text

1.40:1 · Fails for text

Black text

14.97:1 · Passes AAA for all text

For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). Black text is the better choice on gold. Test other combinations with the contrast checker.

Using gold in CSS

.element {
  color: #FFD700;
  background-color: rgb(255 215 0);
  border-color: hsl(51 100% 50%);
}
Advertisement

Frequently asked questions

What is the hex code for gold?

Gold is #FFD700. In RGB it's rgb(255, 215, 0), and in HSL it's hsl(51, 100%, 50%).

What colors go with gold?

Its complementary color is #0028FF, which gives strong contrast. For a softer look, use analogous colors #FF5700 and #A7FF00. Gold also pairs well with white.

Is gold warm or cool?

Gold is a warm color.

Should I use white or black text on gold?

Use black text. Its contrast ratio on gold is 14.97:1, versus 1.40:1 for white.

Similar colors

See all popular colors · All HTML color names · Open gold in the color picker

Advertisement