Gold Color (#FFD700)
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
goldLuminance: 0.6986| Format | Syntax / Values | Notes | Action |
|---|---|---|---|
| HEX | #FFD700 | 6-digit hex web code | |
| RGB | rgb(255, 215, 0) | Red, Green, Blue channels (0-255) | |
| HSL | hsl(51, 100%, 50%) | Hue (51°), Saturation (100%), Lightness (50%) | |
| HSV / HSB | hsv(51, 100%, 100%) | Hue, Saturation (100%), Value/Brightness (100%) | |
| CMYK | cmyk(0%, 16%, 100%, 0%) | Digital mathematical approximation (non-print) | |
| OKLCH | oklch(0.887 0.182 95.3) | Perceptually uniform color space (CSS Color 4 approximation) |
background-color: #FFD700; /* or gold */- Select color format: Choose the desired format (HEX #FFD700, RGB, or HSL).
- Copy the code: Click the copy button or press Tab+Enter to store in clipboard.
- 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.
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.
Gold sets the tone while midnight blue keeps the message clear.
Explore the eventText 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.
Analogous Harmony
Hues 30 degrees either side (21° and 81°), keeping the original saturation and lightness.
Triadic Harmony
Hues spaced evenly by 120 degrees (171° and 291°), keeping the original saturation and lightness.
Tints & Shades
Mixed with white (tints) and black (shades) in sRGB at 60% and 30%.
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:
| Foreground Color | Contrast Ratio | Normal Text (AA) | Large Text (AA) | Normal Text AAA (>= 7.0:1) |
|---|---|---|---|---|
Pure Black (#000000) | 14.97:1 | Pass | Pass | Pass |
Pure White (#FFFFFF) | 1.40:1 | Fail | Fail | Fail |
Dark Charcoal (#212529) | 11.00:1 | Pass | Pass | Pass |
Mid Gray (#666666) | 4.09:1 | Fail | Pass | Fail |
Interactive Contrast Tester
Enter text foreground and background colors to verify WCAG legibility:
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:
Standard Wallpaper: 1920x1080 PNG (#FFD700)Download Options
All wallpaper files precisely match the W3C standard color value:
CSS Standard & Usage Notes
gold = #ffd700 (rgb(255, 215, 0))
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).
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.