Color Converter Convert colors between HEX, RGB and HSL — free, instant, private.

Gold Color Code (#FFD700)

Gold is an official CSS named color: #FFD700 — rgb(255, 215, 0) — hsl(51, 100%, 50%).

HEX#ffd700
RGBrgb(255, 215, 0)
HSLhsl(51, 100%, 50%)
Complementary#0026ff (hue + 180°)
CSS namegold (official keyword)
color: gold; background-color: #ffd700; border-color: hsl(51, 100%, 50%);



The color gold in CSS

Gold is one of the 148 named colors defined by the CSS Color Module — write the keyword gold anywhere a color value is accepted (color, background-color, border-color, gradients) and every browser renders exactly #FFD700 (rgb(255, 215, 0)).

Shades and tints of gold

Same hue and saturation, stepped through lightness — click any swatch for its own page:

Popular color codes

Convert any color with the HEX, RGB and HSL converter.

Common input mistakes (and fixes)

Why an HSL round trip can shift by one

This tool rounds HSL values to whole numbers, so converting away and back can drift slightly. Example: #f97316 becomes hsl(25, 95%, 53%), and converting that back gives rgb(249, 116, 21) — one step off on two channels. That is rounding, not a bug: whole-number HSL offers roughly 3.7 million combinations, while RGB has 16,777,216, so some colors simply have no exact HSL match. Treat the 6-digit HEX as the exact value and HSL as a close, editable approximation.

Frequently asked questions

What color is gold?

Gold is an official CSS named color with the hex code #FFD700 — rgb(255, 215, 0) in RGB and hsl(51, 100%, 50%) in HSL. Its complementary color (hue + 180°) is #0026ff.

How do I use the gold color in CSS?

Write color: gold; for text or background-color: gold; for surfaces — the keyword works in every browser, no quotes needed. Equivalent notations: #FFD700, rgb(255, 215, 0) and hsl(51, 100%, 50%).

Is gold the same as #FFD700?

Yes — the CSS keyword gold is defined as exactly #FFD700 (rgb(255, 215, 0)), so the keyword and the hex code always render the identical color.