#D8CF42#D8CF42

#D8CF42 is a very light, vivid yellow. Relative luminance 0.596; OKLCH L 83.7% C 0.156 H 105.7°. Best body text is #000000 at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#D8CF42
RGBrgb(216, 207, 66)
HSLhsl(56, 66%, 55%)
HSVhsv(56, 69%, 85%)
CMYKcmyk(0%, 4.2%, 69.4%, 15.3%)
CIE-LABlab(81.63, -12.89, 67.52)
CIE-LCHlch(81.63, 68.74, 100.81°)
OKLaboklab(83.72% -0.0422 0.1503)
OKLCHoklch(83.72% 0.156 105.7)
XYZxyz(51.6171, 59.6198, 13.9420)
Luminance0.5962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF42 #424BD8
analogous
#D88442 #D8CF42 #96D842
triadic
#D8CF42 #42D8CF #CF42D8
tetradic
#D8CF42 #42D884 #424BD8 #D84296
square
#D8CF42 #42D884 #424BD8 #D84296
split-complementary
#D8CF42 #4296D8 #8442D8
monochromatic
#847E1B #B7AE26 #D8CF42 #E2DC75 #EDE9A7

Accessibility & contrast

On white

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

On black

12.92
#D8CF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CF42
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CF42#FFFFFF#000000##000000
##D8CF421.001.6212.9212.92
#FFFFFF1.621.0021.0021.00
#00000012.9221.001.001.00
##00000012.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8cf42;
/* rgb */ color: rgb(216, 207, 66);
/* oklch */ color: oklch(83.7% 0.156 105.7);
Tailwind
colors: {
  custom: {
    50: '#e8dd7f',
    500: '#d8cf42',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf42;
$custom-light: #e8dd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf42",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 66
  },
  "hsl": {
    "h": 56.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.83722,
    "c": 0.15607,
    "h": 105.7
  },
  "luminance": 0.59618
}

Semantic roles & 50–950 ramp

primary
#D8CF42
secondary
#33398B
accent
#49E93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D8CF42

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

Preview Lab → · Contrast checker → · Palette generator →

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