#D9C04D#D9C04D

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

Color values

HEX#D9C04D
RGBrgb(217, 192, 77)
HSLhsl(49, 65%, 58%)
HSVhsv(49, 65%, 85%)
CMYKcmyk(0%, 11.5%, 64.5%, 14.9%)
CIE-LABlab(77.87, -4.22, 59.30)
CIE-LCHlch(77.87, 59.45, 94.07°)
OKLaboklab(80.78% -0.0164 0.1346)
OKLCHoklch(80.78% 0.136 96.9)
XYZxyz(48.8067, 52.9892, 14.6769)
Luminance0.5299 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C04D #4D66D9
analogous
#D97A4D #D9C04D #ACD94D
triadic
#D9C04D #4DD9C0 #C04DD9
tetradic
#D9C04D #4DD97A #4D66D9 #D94DAC
square
#D9C04D #4DD97A #4D66D9 #D94DAC
split-complementary
#D9C04D #4DACD9 #7A4DD9
monochromatic
#8D7A1E #C0A529 #D9C04D #E4D27F #EFE4B2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D9C04D#FFFFFF#000000##000000
##D9C04D1.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)
#D2BC3F
Deuteranopia (green-blind)
#D9C453
Tritanopia (blue-blind)
#E9B2A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d9c04d;
/* rgb */ color: rgb(217, 192, 77);
/* oklch */ color: oklch(80.8% 0.136 96.9);
Tailwind
colors: {
  custom: {
    50: '#e8d284',
    500: '#d9c04d',
    950: '#000000',
  },
}
SCSS
$custom: #d9c04d;
$custom-light: #e8d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c04d",
  "rgb": {
    "r": 217,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 49.286,
    "s": 64.815,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80781,
    "c": 0.13563,
    "h": 96.9
  },
  "luminance": 0.52987
}

Semantic roles & 50–950 ramp

primary
#D9C04D
secondary
#374893
accent
#5EE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C04D

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

Preview Lab → · Contrast checker → · Palette generator →

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