#D9C04E#D9C04E

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

Color values

HEX#D9C04E
RGBrgb(217, 192, 78)
HSLhsl(49, 65%, 58%)
HSVhsv(49, 64%, 85%)
CMYKcmyk(0%, 11.5%, 64.1%, 14.9%)
CIE-LABlab(77.88, -4.15, 58.88)
CIE-LCHlch(77.88, 59.02, 94.04°)
OKLaboklab(80.79% -0.0161 0.1339)
OKLCHoklch(80.79% 0.135 96.9)
XYZxyz(48.8422, 53.0034, 14.8642)
Luminance0.5300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C04E #4E67D9
analogous
#D97B4E #D9C04E #ACD94E
triadic
#D9C04E #4ED9C0 #C04ED9
tetradic
#D9C04E #4ED97B #4E67D9 #D94EAC
square
#D9C04E #4ED97B #4E67D9 #D94EAC
split-complementary
#D9C04E #4EACD9 #7B4ED9
monochromatic
#8E7A1F #C0A529 #D9C04E #E4D280 #EFE4B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D9C04E#FFFFFF#000000##000000
##D9C04E1.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)
#D2BC41
Deuteranopia (green-blind)
#D9C454
Tritanopia (blue-blind)
#E9B2A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d9c04e;
/* rgb */ color: rgb(217, 192, 78);
/* oklch */ color: oklch(80.8% 0.135 96.9);
Tailwind
colors: {
  custom: {
    50: '#e8d284',
    500: '#d9c04e',
    950: '#000000',
  },
}
SCSS
$custom: #d9c04e;
$custom-light: #e8d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c04e",
  "rgb": {
    "r": 217,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 49.209,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.8079,
    "c": 0.13486,
    "h": 96.9
  },
  "luminance": 0.53001
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D9C04E

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

Preview Lab → · Contrast checker → · Palette generator →

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