CSS Named Color Reference

Gold Color Code

Gold·#FFD700

Yellow FamilyWarmMid toneHigh saturationoklch(88.7% 0.182 95)
HEX
#FFD700Primary token
RGB
rgb(255, 215, 0)Screen values
HSL
hsl(51 100% 50%)Hue and lightness
CMYK
0, 16, 100, 0Print handoff
LAB
87, -2, 87Perceptual reference
OKLCH
oklch(88.7% 0.182 95)Modern perceptual

Gold is a mid-tone, high-saturation CSS named color at #FFD700. If you searched for gold hex code, FFD700, or gold RGB, this page gives the exact color value, conversion formats, contrast checks, nearby colors, and links into the lookup and converter workflows.

Best text colorDark text
Body text contrast12.23:1
Best UseAttention markers, highlights, warm backgrounds, and caution-adjacent states

Tonal Scale

100#FFF8D1
300#FFED8A
500#FFDE2E
600#FFD700
800#B89B00

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

1.40:1Needs more separation

Dark text on this color

Large headings and selective UI.

12.23:1AAA-level contrast

This color on light surface

Links, borders, and icons on light UI.

1.33:1Needs more separation
Best text colorDark textContrast 12.23:1

Professional Reference

OKLCHoklch(88.7% 0.182 95)
Relative Luminance0.6986
Source TypeCSS Named Color
Classification
Yellow FamilyWarmMid toneHigh saturation
Source Context
Source Type
CSS Named Color
System
CSS
Closest Matches
Material Yellow A700Ant Design Yellow 6Tailwind Yellow 400
Color Notes
  • Gold is kept as an exact CSS named color for #FFD700.
  • Queries for gold color code, FFD700, or gold RGB usually need the value first, then contrast and implementation context.

Accessibility Matrix

White text on this color

White text placed on the current color.

1.40:1Needs more separation

Dark text on this color

Dark text or headings on the current color.

12.23:1AAA

This color on light surface

Use this color for links, strokes, or icons on light UI.

1.33:1Needs more separation

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

12.23:1AAA
Best text colorDark textContrast 12.23:1 · AAA

Where It Works

  • Use it for highlights, caution-adjacent labels, warm backgrounds, and attention markers.
  • Most yellows need dark text for readable interface copy.
  • Pair with charcoal, deep olive, warm neutrals, and controlled orange accents.

Reference Notes

Last Updated
2026-09-03
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Gold is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Bright ambers and yellows that carry warmth.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-gold: #FFD700;
  --color-gold-rgb: 255 215 0;
}
Utility Class
class="bg-[#FFD700] text-white"
class="hover:bg-[#B89B00] ring-1 ring-[#FFD700]"
JSON Token
{
  "gold": "#FFD700",
  "goldRgb": [255, 215, 0],
  "goldHsl": [51, 100, 50]
}