#D9C24F#D9C24F

#D9C24F is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.2% C 0.136 H 98.0°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#D9C24F
RGBrgb(217, 194, 79)
HSLhsl(50, 64%, 58%)
HSVhsv(50, 64%, 85%)
CMYKcmyk(0%, 10.6%, 63.6%, 14.9%)
CIE-LABlab(78.40, -5.13, 59.01)
CIE-LCHlch(78.40, 59.23, 94.96°)
OKLaboklab(81.21% -0.0188 0.1343)
OKLCHoklch(81.21% 0.136 98)
XYZxyz(49.3205, 53.9021, 15.2019)
Luminance0.5390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C24F #4F66D9
analogous
#D97D4F #D9C24F #ABD94F
triadic
#D9C24F #4FD9C2 #C24FD9
tetradic
#D9C24F #4FD97D #4F66D9 #D94FAB
square
#D9C24F #4FD97D #4F66D9 #D94FAB
split-complementary
#D9C24F #4FABD9 #7D4FD9
monochromatic
#8F7C1F #C1A82A #D9C24F #E4D381 #EFE5B4

Accessibility & contrast

On white

1.78
#D9C24F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#D9C24F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C24F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C24F#FFFFFF#000000##000000
##D9C24F1.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD41
Deuteranopia (green-blind)
#DAC555
Tritanopia (blue-blind)
#E9B5AA
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c24f;
/* rgb */ color: rgb(217, 194, 79);
/* oklch */ color: oklch(81.2% 0.136 98.0);
Tailwind
colors: {
  custom: {
    50: '#e8d485',
    500: '#d9c24f',
    950: '#000000',
  },
}
SCSS
$custom: #d9c24f;
$custom-light: #e8d485;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c24f",
  "rgb": {
    "r": 217,
    "g": 194,
    "b": 79
  },
  "hsl": {
    "h": 50,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.81211,
    "c": 0.13563,
    "h": 98
  },
  "luminance": 0.539
}

Semantic roles & 50–950 ramp

primary
#D9C24F
secondary
#384794
accent
#5CE740
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D9C24F

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

Preview Lab → · Contrast checker → · Palette generator →

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