Gold Color (#FFD700)

#FFD700rgb(255, 215, 0)

The CSS gold hex code is #FFD700, with RGB values of 255, 215, 0. CSS gold is a bright golden yellow: full red, a high green channel and no blue. It is a flat color, not a metallic effect.

Color Overview & Formats

CSS: goldLuminance: 0.6986
HEX
#FFD700
RGB
rgb(255, 215, 0)
HSL
hsl(51, 100%, 50%)
Gold (#FFD700) Color Format Conversions
FormatSyntax / ValuesNotesAction
HEX#FFD7006-digit hex web code
RGBrgb(255, 215, 0)Red, Green, Blue channels (0-255)
HSLhsl(51, 100%, 50%)Hue (51°), Saturation (100%), Lightness (50%)
HSV / HSBhsv(51, 100%, 100%)Hue, Saturation (100%), Value/Brightness (100%)
CMYKcmyk(0%, 16%, 100%, 0%)Digital mathematical approximation (non-print)
OKLCHoklch(0.887 0.182 95.3)Perceptually uniform color space (CSS Color 4 approximation)
CSS Implementation & Quick Steps
background-color: #FFD700; /* or gold */
  1. Select color format: Choose the desired format (HEX #FFD700, RGB, or HSL).
  2. Copy the code: Click the copy button or press Tab+Enter to store in clipboard.
  3. Pair with black text: Black text on Gold reaches 14.97:1 (WCAG AAA).

What Colors Go With Gold?

These 6 colors all go well with Gold (#FFD700), and each one is a standard CSS named color. The ratio is the WCAG 2.2 contrast of that color on Gold: at 4.5:1 or above it works for text; below that, use it for backgrounds and accents.

Black

#000000
14.97:1Text-safe

The strongest partner: maximum contrast for text.

Navy

#000080
11.41:1Text-safe

A classic, prestigious pairing with strong readable text.

10.59:1Text-safe

A softer dark blue for a refined, luxurious look.

6.37:1Text-safe

A dark neutral for a modern, restrained look.

Brown

#A52A2A
5.05:1Text-safe

A warm, earthy partner for autumn palettes.

Purple

#800080
6.72:1Text-safe

A royal pairing that has long been used for crests and badges.

Harmonious Palettes & Tints

Gold and midnight blue award palette

Use CSS gold for the surrounding field and midnight blue for text and actions. #FFD700 is a flat screen color; this example deliberately uses no metallic gradient, so its contrast remains measurable.

A moment to celebrate

Gold sets the tone while midnight blue keeps the message clear.

Explore the event

Text on canvas: 10.59:1. Text on card: 14.85:1. Button label: 14.85:1. All three exceed the WCAG AA requirement of 4.5:1 for body text.

View CSS and usage

Use color-theme on the wrapper, example-card on its card and example-action on a button or link.

.color-theme {
  --canvas: #FFD700;
  --surface: #FFFFFF;
  --ink: #191970;
  --action: #191970;
  --action-text: #FFFFFF;
  background: var(--canvas);
  color: var(--ink);
  padding: 24px;
}
.color-theme .example-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 24px;
}
.color-theme .example-action {
  background: var(--action);
  color: var(--action-text);
  border-radius: 6px;
  padding: 10px 16px;
}

The palettes below are algorithmically generated across standard intervals based on Gold (HSL 51°). Each group offers full palette copy and live preview:

Complementary Harmony

Hue rotated 180 degrees on the HSL wheel (51° to 231°), keeping the original saturation and lightness.

Gold
#FFD700
Complement (231°)
#0028FF
Live UI Component Mockup
Component Header SampleBlack text on Gold: 14.97:1 (WCAG AAA).
Button style preview

Analogous Harmony

Hues 30 degrees either side (21° and 81°), keeping the original saturation and lightness.

Analogous (21°)
#FF5700
Gold
#FFD700
Analogous (81°)
#A7FF00
Live UI Component Mockup
Component Header SampleBlack text on Gold: 14.97:1 (WCAG AAA).
Button style preview

Triadic Harmony

Hues spaced evenly by 120 degrees (171° and 291°), keeping the original saturation and lightness.

Gold
#FFD700
Triadic (171°)
#00FFD7
Triadic (291°)
#D700FF
Live UI Component Mockup
Component Header SampleBlack text on Gold: 14.97:1 (WCAG AAA).
Button style preview

Tints & Shades

Mixed with white (tints) and black (shades) in sRGB at 60% and 30%.

Tint 60%
#FFEF99
Tint 30%
#FFE34D
Gold
#FFD700
Shade 30%
#B39700
Shade 60%
#665600
Live UI Component Mockup
Component Header SampleBlack text on Gold: 14.97:1 (WCAG AAA).
Button style preview

WCAG 2.2 Text Readability & Contrast Check

Under WCAG 2.2 criteria, regular body text requires at least 4.5:1 (AA) and large text requires at least 3.0:1. The table below displays calculated contrast ratios:

Text Contrast Ratios on Gold (#FFD700)
Foreground ColorContrast RatioNormal Text (AA)Large Text (AA)Normal Text AAA (>= 7.0:1)
Pure Black (#000000)
14.97:1PassPassPass
Pure White (#FFFFFF)
1.40:1FailFailFail
Dark Charcoal (#212529)
11.00:1PassPassPass
Mid Gray (#666666)
4.09:1FailPassFail

Interactive Contrast Tester

Enter text foreground and background colors to verify WCAG legibility:

Calculated Ratio:
14.97:1
Normal: Pass AAALarge: Pass AAA
Large Heading Sample (18pt Bold)

This is sample body text rendered directly to verify contrast and readability.

Gold Background Download

Download standard 1920x1080 solid desktop wallpaper or generate mobile wallpaper:

Gold 1920x1080 solid color background wallpaper previewStandard Wallpaper: 1920x1080 PNG (#FFD700)

Download Options

All wallpaper files precisely match the W3C standard color value:

Download 1920x1080 PNG

CSS Standard & Usage Notes

gold = #ffd700 (rgb(255, 215, 0))
W3C CSS Color 4

UI Design & Accessibility Guidelines

Use it for awards, badges, premium accents, highlights and festive designs. On Gold, black text passes WCAG AAA at every size (14.97:1); white text fails even for large text (1.4:1).

Published: · Modified: · Editorial: SwatchAtlas Editorial Team

Frequently Asked Questions (FAQ)

Can I use black text on Gold?

Yes. Black text on Gold has a WCAG 2.2 contrast ratio of 14.97:1, passing both AA (4.5:1) and AAA (7:1) at every text size.

Can I use white text on Gold?

No. White text on Gold has a WCAG 2.2 contrast ratio of only 1.4:1, below the 3:1 minimum even for large text.

What colors go with Gold?

Black, Navy, Midnight Blue, Dark Slate Gray, Brown and Purple all go well with Gold. Black (14.97:1), Navy (11.41:1), Midnight Blue (10.59:1), Dark Slate Gray (6.37:1), Brown (5.05:1) and Purple (6.72:1) have enough contrast for text on Gold.

Is there a metallic gold in CSS?

No. CSS gold (#FFD700) is a flat, bright yellow. Metallic gold shades, such as #D4AF37, are not CSS named colors, and shine has to be added with gradients.