#D9C04A#D9C04A

#D9C04A is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.8% C 0.138 H 97.2°. Best body text is #000000 at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#D9C04A
RGBrgb(217, 192, 74)
HSLhsl(50, 65%, 57%)
HSVhsv(50, 66%, 85%)
CMYKcmyk(0%, 11.5%, 65.9%, 14.9%)
CIE-LABlab(77.84, -4.39, 60.54)
CIE-LCHlch(77.84, 60.70, 94.15°)
OKLaboklab(80.75% -0.0172 0.1368)
OKLCHoklch(80.75% 0.138 97.2)
XYZxyz(48.7032, 52.9478, 14.1318)
Luminance0.5294 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C04A #4A63D9
analogous
#D9784A #D9C04A #ABD94A
triadic
#D9C04A #4AD9C0 #C04AD9
tetradic
#D9C04A #4AD978 #4A63D9 #D94AAB
square
#D9C04A #4AD978 #4A63D9 #D94AAB
split-complementary
#D9C04A #4AABD9 #784AD9
monochromatic
#8B781D #BEA428 #D9C04A #E4D27D #EEE3AF

Accessibility & contrast

On white

1.81
#D9C04A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.59
#D9C04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C04A
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C04A#FFFFFF#000000##000000
##D9C04A1.001.8111.5911.59
#FFFFFF1.811.0021.0021.00
#00000011.5921.001.001.00
##00000011.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC3B
Deuteranopia (green-blind)
#D9C450
Tritanopia (blue-blind)
#E9B2A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d9c04a;
/* rgb */ color: rgb(217, 192, 74);
/* oklch */ color: oklch(80.8% 0.138 97.2);
Tailwind
colors: {
  custom: {
    50: '#e8d282',
    500: '#d9c04a',
    950: '#000000',
  },
}
SCSS
$custom: #d9c04a;
$custom-light: #e8d282;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c04a",
  "rgb": {
    "r": 217,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 49.51,
    "s": 65.297,
    "l": 57.059
  },
  "oklch": {
    "l": 0.80754,
    "c": 0.13789,
    "h": 97.2
  },
  "luminance": 0.52945
}

Semantic roles & 50–950 ramp

primary
#D9C04A
secondary
#364691
accent
#5DE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #D9C04A

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

Preview Lab → · Contrast checker → · Palette generator →

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