Gold
Gold is a medium, vivid color from the yellow family. Hex code #FFD700.
Gold color codes
- CSS name
gold - HEX
#FFD700 - RGB
rgb(255, 215, 0) - HSL
hsl(51, 100%, 50%) - OKLCH
oklch(88.7% 0.182 95.3)
HSB and CMYK values
- HSB / HSV
hsb(51, 100%, 100%) - CMYK
C0 M16 Y100 K0
White text
1.40:1 · fails WCAG
Black text
14.97:1 · passes WCAG AAA
Shades of gold
A darker shade of gold is #D5B62F (200).
Colors that go with gold
Complementary
Analogous
Triadic
The complementary color of gold is #0028FF, close to blue.
Click a color to copy its hex code.
Colors similar to gold
- Khaki#F0E68C
Slightly lighter, more muted
- Yellow#FFFF00
Lighter, more green
- Pale goldenrod#EEE8AA
Slightly lighter, much more muted
- Navajo white#FFDEAD
Slightly lighter, more orange, much more muted
- Orange#FFA500
Darker, more orange
- Wheat#F5DEB3
Slightly lighter, more orange, much more muted
Each compared with gold.
About this color
Gold in CSS and design
Gold is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same gold:
color: gold;
color: #FFD700;
color: rgb(255, 215, 0);
color: hsl(51, 100%, 50%);What to know about gold
CSS gold (#FFD700) is a warm, flat yellow: a screen color cannot show the shine of the metal. It is darker and warmer than yellow (#FFFF00), and goldenrod (#DAA520) and dark goldenrod (#B8860B) are deeper, browner golds. As text it needs a dark background: 1.40:1 on white, 14.97:1 on black.
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) and in HSL hsl(51, 100%, 50%). In CMYK it is about C0 M16 Y100 K0, though printed colors vary with paper and ink.
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.
What is the complementary color of gold?
#0028FF, close to blue. It sits opposite gold on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with gold?
For strong contrast, pair it with its complementary color #0028FF. For a calmer look, combine it with its analogous neighbors #FF5700 and #A7FF00. The palette generator builds more combinations.