#D9C04F#D9C04F

#D9C04F is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.8% C 0.134 H 96.8°. Best body text is #000000 at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#D9C04F
RGBrgb(217, 192, 79)
HSLhsl(49, 64%, 58%)
HSVhsv(49, 64%, 85%)
CMYKcmyk(0%, 11.5%, 63.6%, 14.9%)
CIE-LABlab(77.89, -4.09, 58.45)
CIE-LCHlch(77.89, 58.60, 94.00°)
OKLaboklab(80.8% -0.0158 0.1332)
OKLCHoklch(80.8% 0.134 96.8)
XYZxyz(48.8784, 53.0178, 15.0545)
Luminance0.5302 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C04F #4F68D9
analogous
#D97B4F #D9C04F #ADD94F
triadic
#D9C04F #4FD9C0 #C04FD9
tetradic
#D9C04F #4FD97B #4F68D9 #D94FAD
square
#D9C04F #4FD97B #4F68D9 #D94FAD
split-complementary
#D9C04F #4FADD9 #7B4FD9
monochromatic
#8F7A1F #C1A62A #D9C04F #E4D281 #EFE4B4

Accessibility & contrast

On white

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

On black

11.60
#D9C04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C04F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C04F#FFFFFF#000000##000000
##D9C04F1.001.8111.6011.60
#FFFFFF1.811.0021.0021.00
#00000011.6021.001.001.00
##00000011.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC42
Deuteranopia (green-blind)
#D9C455
Tritanopia (blue-blind)
#E9B2A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d9c04f;
/* rgb */ color: rgb(217, 192, 79);
/* oklch */ color: oklch(80.8% 0.134 96.8);
Tailwind
colors: {
  custom: {
    50: '#e8d285',
    500: '#d9c04f',
    950: '#000000',
  },
}
SCSS
$custom: #d9c04f;
$custom-light: #e8d285;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c04f",
  "rgb": {
    "r": 217,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 49.13,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.808,
    "c": 0.13408,
    "h": 96.8
  },
  "luminance": 0.53016
}

Semantic roles & 50–950 ramp

primary
#D9C04F
secondary
#384994
accent
#5FE740
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C04F

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

Preview Lab → · Contrast checker → · Palette generator →

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