Notification
Go to Home All Tools Compare Glossary Blog Contact

Gold Color Code: HEX, RGB, HSL and CMYK

Gold is #ffd700 in hex, rgb(255, 215, 0) in RGB and hsl(51, 100%, 50%) in HSL. Copy any format, check contrast and see shades and matching colours.

Client-Side (Private)
HEX #ffd700
RGB rgb(255, 215, 0)
HSL hsl(51, 100%, 50%)
HSV hsv(51, 100%, 100%)
CMYK cmyk(0%, 16%, 100%, 0%)
Contrast on white 1.4:1
Live Preview
#ffd700 Gold
e.g. gold
Quick try:
Converted Result (ALL)

How to use gold in CSS

Step-by-step mathematical method you can verify by hand

  1. Use the colour name: color: gold; or background: gold;
  2. Or use the hex code: color: #ffd700;
  3. Or use RGB: color: rgb(255, 215, 0); and add transparency with rgba or rgb(... / 50%).
  4. Or use HSL to adjust it: hsl(51, 100%, 50%). Raise the last number to lighten, lower it to darken.

Gold in every format

Worked Hand Example
FormatValue
HEX#ffd700
RGBrgb(255, 215, 0)
HSLhsl(51, 100%, 50%)
HSVhsv(51, 100%, 100%)
CMYKcmyk(0%, 16%, 100%, 0%)
Decimal16766720
gold = #ffd700.

Shades and tints of gold

The hue and saturation of gold stay the same and only the HSL lightness changes, so every row is the same colour family.

ShadeHEXHSL lightness
Lightest #fff7cc 90%
Lighter #ffeb80 75%
Light #ffdf33 60%
Gold #ffd700 50%
Dark #ccac00 40%
Darker #806c00 25%
Darkest #3d3400 12%

Colours that go with gold

Colour-wheel harmonies calculated by rotating the hue.

HarmonyHEXRGB
Complementary #0028ff rgb(0, 40, 255)
Analogous (+30°) #a8ff00 rgb(168, 255, 0)
Analogous (−30°) #ff5800 rgb(255, 88, 0)
Triadic (+120°) #00ffd7 rgb(0, 255, 215)
Triadic (+240°) #d700ff rgb(215, 0, 255)
Split-complementary (+150°) #00a8ff rgb(0, 168, 255)
Split-complementary (+210°) #5800ff rgb(88, 0, 255)

Contrast of gold with black and white text

WCAG 2.x contrast ratios.

Text colourRatioAA normal (4.5)AA large (3)
White 1.4:1 Fail Fail
Black 14.97:1 Pass Pass

More colour codes

Quickly jump to other conversions and color systems

Education

About this converter

01

Exact and Explained

Gold is #ffd700 in hex, rgb(255, 215, 0) in RGB and hsl(51, 100%, 50%) in HSL. Copy any format, check contrast and see shades and matching colours. The worked example and tables on this page are calculated from the numbers themselves, so you can check the result by hand.

02

Privacy

The conversion runs in your browser. Nothing you type is sent to a server.

Good to know

Questions, answered

Quick answers about how this tool works.

gold is #ffd700 in hex, rgb(255, 215, 0) in RGB and hsl(51, 100%, 50%) in HSL.

gold is rgb(255, 215, 0). In the simple CMYK formula it is cmyk(0%, 16%, 100%, 0%) (a screen conversion, not a print profile).

Yes. You can write color: gold; in CSS and it means exactly #ffd700.

Black text has a contrast ratio of 14.97:1 and white text 1.4:1 on this colour. Black is the better choice. WCAG AA needs 4.5:1 for normal text.

Was this tool helpful?

★ 5.0 • 2 user ratings

Tap a star to rate instantly

What do you need to work out next?

Search 278+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Developer Tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI