Description
Gold (read as "g old") has a hue of 51°, saturation 100% and lightness 50%, which places it in the yellow family. Its strongest channel is red (255).
Using gold in CSS
.title { color: gold; }
.box { background: gold; border-color: #ffd700; }
.soft { background: rgb(255 215 0 / 20%); } /* gold at 20% opacity */Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.
Similar named colors
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| yellow | #ffff00 | 255, 255, 0 | 11.6 |
| khaki | #f0e68c | 240, 230, 140 | 12.5 |
| goldenrod | #daa520 | 218, 165, 32 | 13.7 |
| palegoldenrod | #eee8aa | 238, 232, 170 | 16.8 |
| darkkhaki | #bdb76b | 189, 183, 107 | 16.9 |
| navajowhite | #ffdead | 255, 222, 173 | 17.4 |
| orange | #ffa500 | 255, 165, 0 | 17.4 |
| moccasin | #ffe4b5 | 255, 228, 181 | 17.7 |
ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.
Pairs well with
Readability
Contrast with white text: 1.40:1; with black text: 14.97:1. Black body text on gold meets WCAG AA; white text does not.