#D8D542#D8D542

#D8D542 is a very light, vivid yellow. Relative luminance 0.626; OKLCH L 85.0% C 0.162 H 108.2°. Best body text is #000000 at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#D8D542
RGBrgb(216, 213, 66)
HSLhsl(59, 66%, 55%)
HSVhsv(59, 69%, 85%)
CMYKcmyk(0%, 1.4%, 69.4%, 15.3%)
CIE-LABlab(83.22, -15.88, 69.09)
CIE-LCHlch(83.22, 70.89, 102.95°)
OKLaboklab(84.99% -0.0506 0.1536)
OKLCHoklch(84.99% 0.162 108.2)
XYZxyz(53.0985, 62.5825, 14.4358)
Luminance0.6258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D542 #4245D8
analogous
#D88A42 #D8D542 #90D842
triadic
#D8D542 #42D8D5 #D542D8
tetradic
#D8D542 #42D88A #4245D8 #D84290
square
#D8D542 #42D88A #4245D8 #D84290
split-complementary
#D8D542 #4290D8 #8A42D8
monochromatic
#84821B #B7B426 #D8D542 #E2E075 #EDECA7

Accessibility & contrast

On white

1.55
#D8D542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.52
#D8D542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D542
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D542#FFFFFF#000000##000000
##D8D5421.001.5513.5213.52
#FFFFFF1.551.0021.0021.00
#00000013.5221.001.001.00
##00000013.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CD29
Deuteranopia (green-blind)
#E9D24D
Tritanopia (blue-blind)
#E7C7B8
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d8d542;
/* rgb */ color: rgb(216, 213, 66);
/* oklch */ color: oklch(85.0% 0.162 108.2);
Tailwind
colors: {
  custom: {
    50: '#e8e17f',
    500: '#d8d542',
    950: '#000000',
  },
}
SCSS
$custom: #d8d542;
$custom-light: #e8e17f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d542",
  "rgb": {
    "r": 216,
    "g": 213,
    "b": 66
  },
  "hsl": {
    "h": 58.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.84991,
    "c": 0.16169,
    "h": 108.2
  },
  "luminance": 0.62581
}

Semantic roles & 50–950 ramp

primary
#D8D542
secondary
#33358B
accent
#42E93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8D542

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

Preview Lab → · Contrast checker → · Palette generator →

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