#D8DF42#D8DF42

#D8DF42 is a very light, vivid yellow. Relative luminance 0.678; OKLCH L 87.1% C 0.172 H 112.0°. Best body text is #000000 at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#D8DF42
RGBrgb(216, 223, 66)
HSLhsl(63, 71%, 57%)
HSVhsv(63, 70%, 87%)
CMYKcmyk(3.1%, 0%, 70.4%, 12.5%)
CIE-LABlab(85.89, -20.79, 71.70)
CIE-LCHlch(85.89, 74.65, 106.17°)
OKLaboklab(87.12% -0.0643 0.1591)
OKLCHoklch(87.12% 0.172 112)
XYZxyz(55.6917, 67.7690, 15.3002)
Luminance0.6777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8DF42 #4942DF
analogous
#DF9842 #D8DF42 #8ADF42
triadic
#D8DF42 #42D8DF #DF42D8
tetradic
#D8DF42 #42DF98 #4942DF #DF428A
square
#D8DF42 #42DF98 #4942DF #DF428A
split-complementary
#D8DF42 #428ADF #9842DF
monochromatic
#898E18 #BCC321 #D8DF42 #E3E876 #EEF1AB

Accessibility & contrast

On white

1.44
#D8DF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.55
#D8DF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8DF42
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8DF42#FFFFFF#000000##000000
##D8DF421.001.4414.5514.55
#FFFFFF1.441.0021.0021.00
#00000014.5521.001.001.00
##00000014.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D526
Deuteranopia (green-blind)
#F0D94E
Tritanopia (blue-blind)
#E7D2C0
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #d8df42;
/* rgb */ color: rgb(216, 223, 66);
/* oklch */ color: oklch(87.1% 0.172 112.0);
Tailwind
colors: {
  custom: {
    50: '#e8e880',
    500: '#d8df42',
    950: '#000000',
  },
}
SCSS
$custom: #d8df42;
$custom-light: #e8e880;
$custom-dark: #000000;
JSON
{
  "hex": "#d8df42",
  "rgb": {
    "r": 216,
    "g": 223,
    "b": 66
  },
  "hsl": {
    "h": 62.675,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.87123,
    "c": 0.17159,
    "h": 112
  },
  "luminance": 0.67768
}

Semantic roles & 50–950 ramp

primary
#D8DF42
secondary
#363294
accent
#3AEE42
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16160B
muted
#85847E

Preview Lab

Preview with #D8DF42

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

Preview Lab → · Contrast checker → · Palette generator →

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