#D9CF42#D9CF42

#D9CF42 is a very light, vivid yellow. Relative luminance 0.598; OKLCH L 83.8% C 0.156 H 105.3°. Best body text is #000000 at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#D9CF42
RGBrgb(217, 207, 66)
HSLhsl(56, 67%, 55%)
HSVhsv(56, 70%, 85%)
CMYKcmyk(0%, 4.6%, 69.6%, 14.9%)
CIE-LABlab(81.71, -12.47, 67.63)
CIE-LCHlch(81.71, 68.77, 100.45°)
OKLaboklab(83.81% -0.041 0.1505)
OKLCHoklch(83.81% 0.156 105.3)
XYZxyz(51.9135, 59.7726, 13.9559)
Luminance0.5977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CF42 #424CD9
analogous
#D98342 #D9CF42 #98D942
triadic
#D9CF42 #42D9CF #CF42D9
tetradic
#D9CF42 #42D983 #424CD9 #D94298
square
#D9CF42 #42D983 #424CD9 #D94298
split-complementary
#D9CF42 #4298D9 #8342D9
monochromatic
#867F1B #B9AF25 #D9CF42 #E3DC75 #EDE9A8

Accessibility & contrast

On white

1.62
#D9CF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.95
#D9CF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9CF42
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9CF42#FFFFFF#000000##000000
##D9CF421.001.6212.9512.95
#FFFFFF1.621.0021.0021.00
#00000012.9521.001.001.00
##00000012.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C82B
Deuteranopia (green-blind)
#E4CE4C
Tritanopia (blue-blind)
#E9C1B3
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d9cf42;
/* rgb */ color: rgb(217, 207, 66);
/* oklch */ color: oklch(83.8% 0.156 105.3);
Tailwind
colors: {
  custom: {
    50: '#e8dd7f',
    500: '#d9cf42',
    950: '#000000',
  },
}
SCSS
$custom: #d9cf42;
$custom-light: #e8dd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cf42",
  "rgb": {
    "r": 217,
    "g": 207,
    "b": 66
  },
  "hsl": {
    "h": 56.026,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.83809,
    "c": 0.15597,
    "h": 105.3
  },
  "luminance": 0.59771
}

Semantic roles & 50–950 ramp

primary
#D9CF42
secondary
#33398C
accent
#4AE93E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9CF42

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

Preview Lab → · Contrast checker → · Palette generator →

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