#D8E152#D8E152

#D8E152 is a very light, vivid yellow. Relative luminance 0.691; OKLCH L 87.7% C 0.163 H 112.7°. Best body text is #000000 at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#D8E152
RGBrgb(216, 225, 82)
HSLhsl(64, 70%, 60%)
HSVhsv(64, 64%, 88%)
CMYKcmyk(4%, 0%, 63.6%, 11.8%)
CIE-LABlab(86.53, -20.88, 66.37)
CIE-LCHlch(86.53, 69.58, 107.46°)
OKLaboklab(87.67% -0.063 0.1504)
OKLCHoklch(87.67% 0.163 112.7)
XYZxyz(56.7687, 69.0597, 18.3204)
Luminance0.6906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8E152 #5B52E1
analogous
#E1A252 #D8E152 #91E152
triadic
#D8E152 #52D8E1 #E152D8
tetradic
#D8E152 #52E1A2 #5B52E1 #E15291
square
#D8E152 #52E1A2 #5B52E1 #E15291
split-complementary
#D8E152 #5291E1 #A252E1
monochromatic
#959D1B #C7D124 #D8E152 #E4EA86 #F0F3BA

Accessibility & contrast

On white

1.42
#D8E152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.81
#D8E152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8E152
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8E152#FFFFFF#000000##000000
##D8E1521.001.4214.8114.81
#FFFFFF1.421.0021.0021.00
#00000014.8121.001.001.00
##00000014.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D73F
Deuteranopia (green-blind)
#F1DA5C
Tritanopia (blue-blind)
#E6D4C4
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #d8e152;
/* rgb */ color: rgb(216, 225, 82);
/* oklch */ color: oklch(87.7% 0.163 112.7);
Tailwind
colors: {
  custom: {
    50: '#e7ea89',
    500: '#d8e152',
    950: '#000000',
  },
}
SCSS
$custom: #d8e152;
$custom-light: #e7ea89;
$custom-dark: #000000;
JSON
{
  "hex": "#d8e152",
  "rgb": {
    "r": 216,
    "g": 225,
    "b": 82
  },
  "hsl": {
    "h": 63.776,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.87672,
    "c": 0.16304,
    "h": 112.7
  },
  "luminance": 0.69059
}

Semantic roles & 50–950 ramp

primary
#D8E152
secondary
#3D37A1
accent
#13D21F
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16160C
muted
#85847F

Preview Lab

Preview with #D8E152

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

Preview Lab → · Contrast checker → · Palette generator →

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