
The gold hex code is #FFD700, the official CSS color named gold. It is a bright, warm yellow, which surprises many people who expect the deeper tone of gold jewelry.
That’s because real gold is metallic: it looks gold because of its reflections, not one flat color. This guide gives you every code for #FFD700, explains the difference between CSS gold and metallic gold, lists 20 gold shades from pale to antique, and includes a CSS gradient that makes gold actually look like metal.
Gold color codes
| Format | Value |
|---|---|
| HEX | #FFD700 |
| RGB | rgb(255, 215, 0) |
| HSL | hsl(51, 100%, 50%) |
| CMYK (approx.) | 0, 16, 100, 0 |
| CSS name | gold |
With full saturation and 50% lightness, #FFD700 is the most vivid version of its hue. In print, a real metallic gold needs metallic ink or foil; CMYK can only print a flat yellow-gold.
CSS gold vs metallic gold
| CSS gold | Metallic gold | |
|---|---|---|
| Hex | #FFD700 | #D4AF37 (commonly listed value) |
| RGB | 255, 215, 0 | 212, 175, 55 |
| HSL | 51°, 100%, 50% | 46°, 65%, 52% |
| Look | Bright yellow-gold | Deeper, softer, more “real” |
| Best for | Highlights, stars, badges | Luxury branding, borders, text on dark |
Metallic gold has no official CSS name, so its value varies between sources; #D4AF37 is the one most often listed. Rose gold is similar: #B76E79 is a commonly listed value, not an official one.
20 shades of gold
Official CSS golds
| Name | Hex | RGB |
|---|---|---|
| Gold | #FFD700 | 255, 215, 0 |
| Goldenrod | #DAA520 | 218, 165, 32 |
| DarkGoldenrod | #B8860B | 184, 134, 11 |
| PaleGoldenrod | #EEE8AA | 238, 232, 170 |
| LightGoldenrodYellow | #FAFAD2 | 250, 250, 210 |
| Khaki | #F0E68C | 240, 230, 140 |
Commonly listed golds
| Name | Hex | RGB |
|---|---|---|
| Metallic gold | #D4AF37 | 212, 175, 55 |
| Rose gold | #B76E79 | 183, 110, 121 |
Bright golds
| Hex | RGB | Text on it |
|---|---|---|
| #F7E56E | 247, 229, 110 | Dark (14.74:1) |
| #FFDD33 | 255, 221, 51 | Dark (14.07:1) |
| #F9CE1F | 249, 206, 31 | Dark (12.48:1) |
| #F3BC16 | 243, 188, 22 | Dark (10.80:1) |
Metallic golds
| Hex | RGB | Text on it |
|---|---|---|
| #C9B05E | 201, 176, 94 | Dark (8.86:1) |
| #D4AC35 | 212, 172, 53 | Dark (8.77:1) |
| #B8912E | 184, 145, 46 | Dark (6.41:1) |
| #9E792E | 158, 121, 46 | Dark (4.70:1) |
Antique and dark golds
| Hex | RGB | Text on it |
|---|---|---|
| #A18545 | 161, 133, 69 | Dark (5.36:1) |
| #836221 | 131, 98, 33 | White (5.62:1) |
| #6F5220 | 111, 82, 32 | White (7.23:1) |
| #604520 | 96, 69, 32 | White (8.86:1) |
Make gold look metallic with a CSS gradient
A single flat color can’t shine. A gradient with a bright highlight between darker bands imitates light on metal:
.gold-metal {
background: linear-gradient(135deg,
#8A6D1E 0%,
#D4AF37 40%,
#FFF1A8 50%,
#D4AF37 60%,
#8A6D1E 100%);
}
The dark antique gold at each end acts as shadow, #D4AF37 is the body of the metal, and the pale #FFF1A8 band in the middle is the reflection.
Tips:
- Softer, brushed gold: widen the highlight band (for example 30%, 50%, 70%).
- Rose gold: swap in #B76E79 and a pale pink highlight such as #F6D5D9.
- Gold text: use the gradient with background-clip: text, keep the text large and bold, and place it on a dark background.
The same technique creates metallic silver; see our silver guide for that version.
Text and gold
Gold is light, so it needs dark text, and gold text needs a dark background:
| Pairing | Contrast | Verdict |
|---|---|---|
| Navy #000080 text on #FFD700 | 11.41:1 | Passes easily |
| Maroon #800000 text on #FFD700 | 7.81:1 | Passes easily |
| Metallic gold #D4AF37 text on #1A1A1A | 8.28:1 | Passes easily |
| Metallic gold #D4AF37 text on navy #0B1F3A | 7.86:1 | Passes easily |
| White text on #FFD700 | 1.40:1 | Fails |
If you need gold-colored text on a white background, use a dark gold such as #6B4E0A (7.58:1 on #FFFDF5) and keep the bright gold for decoration.
Colors that go with gold
- Navy: classic, premium (see our navy blue guide).
- Burgundy and maroon: rich and traditional.
- Black and charcoal: luxury and evening events.
- Ivory and cream: weddings and invitations.
- Emerald and deep green: holidays and finance.
Common mistakes with gold
- Expecting #FFD700 to look like jewelry. It’s bright yellow. Fix: use #D4AF37 or a gradient.
- White text on gold. It fails badly (1.40:1). Fix: use navy, maroon or near-black.
- Gold text on white. Light golds disappear. Fix: put gold text on dark backgrounds, or use a dark gold.
- Too much gold. It quickly looks cheap. Fix: use gold for accents, borders and icons.
- Printing gold with CMYK and expecting shine. Fix: ask your printer about metallic ink or foil.
FAQ
What is the hex code for gold?
The CSS color gold is #FFD700, which is rgb(255, 215, 0).
What is the hex code for metallic gold?
There is no official one. #D4AF37 is the most commonly listed value, and a gradient gives the most realistic metallic look.
What is the hex code for rose gold?
There is no official one either. #B76E79 is a commonly listed value.
What color text goes on gold?
Dark colors such as navy, maroon or near-black. White text on #FFD700 fails contrast.
What colors go with gold?
Navy, black, burgundy, emerald green, cream and white.
Choose your gold
Use #FFD700 for a bright highlight, #D4AF37 for a realistic metallic gold, an antique gold for text and borders, and a gradient whenever you want real shine.