#D8D342#D8D342

#D8D342 is a very light, vivid yellow. Relative luminance 0.616; OKLCH L 84.6% C 0.160 H 107.4°. Best body text is #000000 at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#D8D342
RGBrgb(216, 211, 66)
HSLhsl(58, 66%, 55%)
HSVhsv(58, 69%, 85%)
CMYKcmyk(0%, 2.3%, 69.4%, 15.3%)
CIE-LABlab(82.69, -14.89, 68.57)
CIE-LCHlch(82.69, 70.17, 102.25°)
OKLaboklab(84.57% -0.0478 0.1525)
OKLCHoklch(84.57% 0.16 107.4)
XYZxyz(52.5985, 61.5826, 14.2691)
Luminance0.6158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D342 #4247D8
analogous
#D88842 #D8D342 #92D842
triadic
#D8D342 #42D8D3 #D342D8
tetradic
#D8D342 #42D888 #4247D8 #D84292
square
#D8D342 #42D888 #4247D8 #D84292
split-complementary
#D8D342 #4292D8 #8842D8
monochromatic
#84811B #B7B226 #D8D342 #E2DF75 #EDEBA7

Accessibility & contrast

On white

1.58
#D8D342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.32
#D8D342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D342
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D342#FFFFFF#000000##000000
##D8D3421.001.5813.3213.32
#FFFFFF1.581.0021.0021.00
#00000013.3221.001.001.00
##00000013.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB2A
Deuteranopia (green-blind)
#E7D04C
Tritanopia (blue-blind)
#E7C5B6
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d8d342;
/* rgb */ color: rgb(216, 211, 66);
/* oklch */ color: oklch(84.6% 0.160 107.4);
Tailwind
colors: {
  custom: {
    50: '#e8e07f',
    500: '#d8d342',
    950: '#000000',
  },
}
SCSS
$custom: #d8d342;
$custom-light: #e8e07f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d342",
  "rgb": {
    "r": 216,
    "g": 211,
    "b": 66
  },
  "hsl": {
    "h": 58,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.84567,
    "c": 0.15979,
    "h": 107.4
  },
  "luminance": 0.61581
}

Semantic roles & 50–950 ramp

primary
#D8D342
secondary
#33368B
accent
#45E93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8D342

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

Preview Lab → · Contrast checker → · Palette generator →

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