#D1C24F#D1C24F

#D1C24F is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.5% C 0.135 H 101.9°. Best body text is #000000 at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#D1C24F
RGBrgb(209, 194, 79)
HSLhsl(53, 59%, 56%)
HSVhsv(53, 62%, 82%)
CMYKcmyk(0%, 7.2%, 62.2%, 18%)
CIE-LABlab(77.70, -8.50, 58.05)
CIE-LCHlch(77.70, 58.66, 98.33°)
OKLaboklab(80.49% -0.0279 0.1325)
OKLCHoklch(80.49% 0.135 101.9)
XYZxyz(46.9994, 52.7053, 15.0931)
Luminance0.5270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C24F #4F5ED1
analogous
#D1814F #D1C24F #9FD14F
triadic
#D1C24F #4FD1C2 #C24FD1
tetradic
#D1C24F #4FD181 #4F5ED1 #D14F9F
square
#D1C24F #4FD181 #4F5ED1 #D14F9F
split-complementary
#D1C24F #4F9FD1 #814FD1
monochromatic
#837822 #B4A42F #D1C24F #DED380 #EAE4B0

Accessibility & contrast

On white

1.82
#D1C24F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.54
#D1C24F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C24F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C24F#FFFFFF#000000##000000
##D1C24F1.001.8211.5411.54
#FFFFFF1.821.0021.0021.00
#00000011.5421.001.001.00
##00000011.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC42
Deuteranopia (green-blind)
#D7C355
Tritanopia (blue-blind)
#E0B5AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d1c24f;
/* rgb */ color: rgb(209, 194, 79);
/* oklch */ color: oklch(80.5% 0.135 101.9);
Tailwind
colors: {
  custom: {
    50: '#e2d485',
    500: '#d1c24f',
    950: '#000000',
  },
}
SCSS
$custom: #d1c24f;
$custom-light: #e2d485;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c24f",
  "rgb": {
    "r": 209,
    "g": 194,
    "b": 79
  },
  "hsl": {
    "h": 53.077,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.80485,
    "c": 0.13541,
    "h": 101.9
  },
  "luminance": 0.52703
}

Semantic roles & 50–950 ramp

primary
#D1C24F
secondary
#3A438A
accent
#58E246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C24F

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

Preview Lab → · Contrast checker → · Palette generator →

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