#D4AC31#D4AC31

#D4AC31 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 76.0% C 0.140 H 89.7°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#D4AC31
RGBrgb(212, 172, 49)
HSLhsl(45, 65%, 51%)
HSVhsv(45, 77%, 83%)
CMYKcmyk(0%, 18.9%, 76.9%, 16.9%)
CIE-LABlab(72.05, 2.72, 64.33)
CIE-LCHlch(72.05, 64.39, 87.58°)
OKLaboklab(76.01% 0.0006 0.1405)
OKLCHoklch(76.01% 0.14 89.7)
XYZxyz(42.4608, 43.7266, 9.1088)
Luminance0.4372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4AC31 #3159D4
analogous
#D45A31 #D4AC31 #AAD431
triadic
#D4AC31 #31D4AC #AC31D4
tetradic
#D4AC31 #31D45A #3159D4 #D431AA
square
#D4AC31 #31D45A #3159D4 #D431AA
split-complementary
#D4AC31 #31AAD4 #5A31D4
monochromatic
#735C18 #A58523 #D4AC31 #DFC064 #E9D596

Accessibility & contrast

On white

2.15
#D4AC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.74
#D4AC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4AC31
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4AC31#FFFFFF#000000##000000
##D4AC311.002.159.749.74
#FFFFFF2.151.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA19
Deuteranopia (green-blind)
#CAB538
Tritanopia (blue-blind)
#E69D94
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d4ac31;
/* rgb */ color: rgb(212, 172, 49);
/* oklch */ color: oklch(76.0% 0.140 89.7);
Tailwind
colors: {
  custom: {
    50: '#e6c473',
    500: '#d4ac31',
    950: '#000000',
  },
}
SCSS
$custom: #d4ac31;
$custom-light: #e6c473;
$custom-dark: #000000;
JSON
{
  "hex": "#d4ac31",
  "rgb": {
    "r": 212,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 45.276,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.76007,
    "c": 0.14047,
    "h": 89.7
  },
  "luminance": 0.43724
}

Semantic roles & 50–950 ramp

primary
#D4AC31
secondary
#8C9ED4
accent
#69E83F
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171208
muted
#85817B

Preview Lab

Preview with #D4AC31

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D4AC31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva