Gold Color Code (#ffd700)

Gold is #ffd700 in hex and rgb(255, 215, 0) — a medium yellow. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Gold
#ffd700
CSS namegold
Hex#ffd700
RGBrgb(255, 215, 0)
HSLhsl(51 100% 50%)
HWBhwb(51 0% 0%)
CMYK0%, 16%, 100%, 0%

Tints and shades

Color harmonies

About Gold

Gold (gold) is a medium, vivid yellow with the hex code #ffd700, or rgb(255, 215, 0). In HSL it sits at a hue of 51°, 100% saturation and 50% lightness. It is one of the 148 named colors every browser understands, so you can write color: gold; instead of the hex value.

Using Gold for text and backgrounds

PairingContrast ratioWCAG
Gold text on white1.40 : 1fails
Gold text on black14.97 : 1AAA

On a gold background, use black text (14.97 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: gold;               /* or #ffd700 */
  background-color: #ffd700;
  border: 1px solid rgb(255 215 0 / 50%);
}

Similar named colors

Yellow (#ffff00), Orange (#ffa500), Goldenrod (#daa520), Dark Orange (#ff8c00), Green Yellow (#adff2f), Dark Goldenrod (#b8860b).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for gold?
#ffd700 — that is rgb(255, 215, 0) and hsl(51, 100%, 50%). In CSS you can also just write gold.
Is gold text readable on white?
Its contrast ratio on white is 1.40 : 1, which fails WCAG — use it for decoration or on a dark background instead.
What colors go well with gold?
Its complementary color is #0026ff; analogous colors #ff5900 and #a6ff00 sit next to it on the color wheel.