CSS color names · Yellows

Gold color: hex #ffd700, RGB and HSL

Gold is the CSS keyword gold, hex #ffd700, rgb(255, 215, 0), hsl(51, 100%, 50%). It is a medium, fully saturated yellow in the yellows family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
gold
Hex
#ffd700
RGB
rgb(255, 215, 0)
HSL
hsl(51, 100%, 50%)
On white
1.4:1 — fails AA; use as a fill, not text
On black
14.97:1 — passes AA for body text
.example {
  color: gold;          /* keyword */
  color: #ffd700;          /* hex */
  color: rgb(255, 215, 0); /* rgb */
  color: hsl(51, 100%, 50%); /* hsl */
}

What colors go with gold

Each match keeps gold's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside gold as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#0028ff

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#00a7ff
#5700ff

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#00ffd7
#d700ff

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#ff5700
#a7ff00

Tints and shades of gold

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as gold — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#ffde2b
#ffe455
#ffeb80
#fff2aa
#fff8d4

Shades (darker)

#d4b300
#aa8f00
#806b00
#554800
#2b2400

A UI color palette built from gold

The eight semantic roles an interface actually uses, derived from gold as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#ffd700
secondary
#00a7ff
accent
#5700ff
background
#fdfdfc
surface
#f7f6f3
text
#222011
muted
#8f8656
border
#eceadf
Dark mode
primary
#ffdb1a
secondary
#1ab0ff
accent
#681aff
background
#1b190e
surface
#282515
text
#f6f6f3
muted
#b8b294
border
#494427

Using gold in an interface

Pure yellow fails contrast against white for text at every size, so it belongs on dark surfaces or as a fill with dark text. The creams are excellent warm page backgrounds; the khakis are muted enough for borders and tags. Whichever role gold takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Gold?
Gold is #ffd700. In CSS the keyword gold, the hex #ffd700, rgb(255, 215, 0) and hsl(51, 100%, 50%) all paint the same color.
What colors go with Gold?
Its complement is #0028ff, the split-complementary pair is #00a7ff and #5700ff, the triadic partners are #00ffd7 and #d700ff, and the analogous neighbors are #ff5700 and #a7ff00. In an interface, use Gold for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Gold on the color wheel?
The opposite (complementary) color is #0028ff, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Gold for text?
Gold as text on white has a contrast ratio of 1.4:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 14.97:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More yellows

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.