#D8D442#D8D442

#D8D442 is a very light, vivid yellow. Relative luminance 0.621; OKLCH L 84.8% C 0.161 H 107.8°. Best body text is #000000 at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#D8D442
RGBrgb(216, 212, 66)
HSLhsl(58, 66%, 55%)
HSVhsv(58, 69%, 85%)
CMYKcmyk(0%, 1.9%, 69.4%, 15.3%)
CIE-LABlab(82.96, -15.39, 68.83)
CIE-LCHlch(82.96, 70.53, 102.60°)
OKLaboklab(84.78% -0.0492 0.153)
OKLCHoklch(84.78% 0.161 107.8)
XYZxyz(52.8477, 62.0810, 14.3522)
Luminance0.6208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D442 #4246D8
analogous
#D88942 #D8D442 #91D842
triadic
#D8D442 #42D8D4 #D442D8
tetradic
#D8D442 #42D889 #4246D8 #D84291
square
#D8D442 #42D889 #4246D8 #D84291
split-complementary
#D8D442 #4291D8 #8942D8
monochromatic
#84811B #B7B326 #D8D442 #E2E075 #EDEBA7

Accessibility & contrast

On white

1.57
#D8D442 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.42
#D8D442 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D442
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D442#FFFFFF#000000##000000
##D8D4421.001.5713.4213.42
#FFFFFF1.571.0021.0021.00
#00000013.4221.001.001.00
##00000013.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CC2A
Deuteranopia (green-blind)
#E8D14C
Tritanopia (blue-blind)
#E7C6B7
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d8d442;
/* rgb */ color: rgb(216, 212, 66);
/* oklch */ color: oklch(84.8% 0.161 107.8);
Tailwind
colors: {
  custom: {
    50: '#e8e07f',
    500: '#d8d442',
    950: '#000000',
  },
}
SCSS
$custom: #d8d442;
$custom-light: #e8e07f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d442",
  "rgb": {
    "r": 216,
    "g": 212,
    "b": 66
  },
  "hsl": {
    "h": 58.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.84779,
    "c": 0.16074,
    "h": 107.8
  },
  "luminance": 0.62079
}

Semantic roles & 50–950 ramp

primary
#D8D442
secondary
#33368B
accent
#44E93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D8D442

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

Preview Lab → · Contrast checker → · Palette generator →

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