Swatchproof

Gold #FFD700

Gold is one of the named colours in CSS, written gold. Black text reaches 14.97:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordgold
HEX#FFD700
RGBrgb(255 215 0)
HSLhsl(51 100% 50%)
OKLCHoklch(88.7% 0.182 95.3)
White text1.40:1 · body text AA Fail
Black text14.97:1 · body text AA Pass

Colours that go with Gold

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Apricot Yellow (#FFDD00), nearly identical. These are the colours Wada paired it with, ranked by their contrast with Gold itself.

ColourHEXContrast with GoldBody text AA
Dull Violet Black#1E0E3F12.58:1Pass
Deep Lyons Blue#1C42866.89:1Pass
Dusky Green#004F466.78:1Pass
Antwarp Blue#0071903.98:1Fail
Cossack Green#4377423.78:1Fail
Burnt Sienna#AE52243.71:1Fail
Light Grayish Olive#8480612.86:1Fail
Raw Sienna#BB71252.72:1Fail
Benzol Green#00978D2.58:1Fail
Eugenia Red | A#E2625E2.44:1Fail
Green#489B6E2.42:1Fail
Old Rose#D46D7A2.39:1Fail
Khaki#BC892B2.22:1Fail
Olive Yellow#A6A1591.90:1Fail
Sea Green#00B49B1.87:1Fail
Salvia Blue#97ACC81.65:1Fail
Citron Yellow#B2B73E1.54:1Fail
Yellow Orange#F99D1B1.52:1Fail
Vinaceous Cinnamon#EEA78C1.42:1Fail
Pinkish Cinnamon#EEB4801.30:1Fail
Pale King's Blue#A7D4E41.14:1Fail
Turquoise Green#B5DECC1.05:1Fail

Palettes with Apricot Yellow

Shades and tints of Gold

Nine lightness steps in OKLCH that keep the hue of Gold. Chroma is reduced only where sRGB cannot show it.

:root {
  --gold-100: #FFF6D1;
  --gold-200: #FFE47B;
  --gold-300: #F1CB00;
  --gold-400: #D0AF00;
  --gold-500: #AC9000;
  --gold-600: #867000;
  --gold-700: #655400;
  --gold-800: #463A00;
  --gold-900: #292100;
}

Text that keeps Gold on screen

Text #292100 on #FFD700 reaches 11.41:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours