Skip to content

Gold

Gold is a medium, vivid color from the yellow family. Hex code #FFD700.

Gold#FFD700

Color codes

  • CSS namegold
  • HEX#FFD700
  • RGBrgb(255 215 0)
  • HSLhsl(51 100% 50%)
  • HSB / HSVhsb(51, 100%, 100%)
  • OKLCHoklch(88.7% 0.182 95.3)
  • CMYKcmyk(0%, 16%, 100%, 0%)

White text

1.40:1 · fails WCAG

Black text

14.97:1 · passes WCAG AAA

Shades

50#FFF2C2
100#F6D339
200#D5B62F
300#B69B23
400#988012
500#796717
600#5E4E01
700#433700
800#292100

Complementary

#FFD700
#CFD8FC

Analogous

#FFD700
#FED0A3
#BEEE59

Triadic

#FFD700
#94E9FE
#FFC4F0

About this color

Gold in CSS and design

Gold is a medium, vivid color from the yellow family. Gold is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: gold;
color: #FFD700;
color: rgb(255 215 0);
color: hsl(51 100% 50%);

For text on gold, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for gold?

#FFD700. In CSS you can also use the keyword gold, which works in every browser.

What is gold in RGB and HSL?

In RGB it is rgb(255 215 0), in HSL hsl(51 100% 50%). For print, cmyk(0%, 16%, 100%, 0%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on gold?

Black text works better: it has a contrast ratio of 14.97:1 and passes WCAG AAA. White text reaches 1.40:1.

Which colors go with gold?

Its complementary color is #CFD8FC, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #FED0A3 and #BEEE59. The palette generator builds more combinations.