#D8E952#D8E952

#D8E952 is a very light, vivid yellow. Relative luminance 0.735; OKLCH L 89.4% C 0.172 H 115.5°. Best body text is #000000 at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#D8E952
RGBrgb(216, 233, 82)
HSLhsl(67, 77%, 62%)
HSVhsv(67, 65%, 91%)
CMYKcmyk(7.3%, 0%, 64.8%, 8.6%)
CIE-LABlab(88.68, -24.73, 68.61)
CIE-LCHlch(88.68, 72.93, 109.82°)
OKLaboklab(89.39% -0.0738 0.1551)
OKLCHoklch(89.39% 0.172 115.5)
XYZxyz(58.9822, 73.4869, 19.0583)
Luminance0.7349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8E952 #6352E9
analogous
#E9AF52 #D8E952 #8DE952
triadic
#D8E952 #52D8E9 #E952D8
tetradic
#D8E952 #52E9AF #6352E9 #E9528D
square
#D8E952 #52E9AF #6352E9 #E9528D
split-complementary
#D8E952 #528DE9 #AF52E9
monochromatic
#9AAB16 #CBE11D #D8E952 #E4F088 #F0F7BF

Accessibility & contrast

On white

1.34
#D8E952 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.70
#D8E952 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8E952
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8E952#FFFFFF#000000##000000
##D8E9521.001.3415.7015.70
#FFFFFF1.341.0021.0021.00
#00000015.7021.001.001.00
##00000015.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9DE3D
Deuteranopia (green-blind)
#F7E05D
Tritanopia (blue-blind)
#E5DCCA
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #d8e952;
/* rgb */ color: rgb(216, 233, 82);
/* oklch */ color: oklch(89.4% 0.172 115.5);
Tailwind
colors: {
  custom: {
    50: '#e7ef8a',
    500: '#d8e952',
    950: '#000000',
  },
}
SCSS
$custom: #d8e952;
$custom-light: #e7ef8a;
$custom-dark: #000000;
JSON
{
  "hex": "#d8e952",
  "rgb": {
    "r": 216,
    "g": 233,
    "b": 82
  },
  "hsl": {
    "h": 66.755,
    "s": 77.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.8939,
    "c": 0.17174,
    "h": 115.5
  },
  "luminance": 0.73486
}

Semantic roles & 50–950 ramp

primary
#D8E952
secondary
#4133AC
accent
#0CDA23
background
#FFFFFC
surface
#FEFEF4
border
#D6D6CE
text
#16160C
muted
#85857F

Preview Lab

Preview with #D8E952

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

Preview Lab → · Contrast checker → · Palette generator →

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