#D8E252#D8E252

#D8E252 is a very light, vivid yellow. Relative luminance 0.696; OKLCH L 87.9% C 0.164 H 113.1°. Best body text is #000000 at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#D8E252
RGBrgb(216, 226, 82)
HSLhsl(64, 71%, 60%)
HSVhsv(64, 64%, 89%)
CMYKcmyk(4.4%, 0%, 63.7%, 11.4%)
CIE-LABlab(86.80, -21.36, 66.65)
CIE-LCHlch(86.80, 69.99, 107.77°)
OKLaboklab(87.89% -0.0644 0.151)
OKLCHoklch(87.89% 0.164 113.1)
XYZxyz(57.0398, 69.6020, 18.4108)
Luminance0.6960 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8E252 #5C52E2
analogous
#E2A452 #D8E252 #90E252
triadic
#D8E252 #52D8E2 #E252D8
tetradic
#D8E252 #52E2A4 #5C52E2 #E25290
square
#D8E252 #52E2A4 #5C52E2 #E25290
split-complementary
#D8E252 #5290E2 #A452E2
monochromatic
#969F1B #C7D323 #D8E252 #E4EB86 #F0F4BB

Accessibility & contrast

On white

1.41
#D8E252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.92
#D8E252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8E252
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8E252#FFFFFF#000000##000000
##D8E2521.001.4114.9214.92
#FFFFFF1.411.0021.0021.00
#00000014.9221.001.001.00
##00000014.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D83F
Deuteranopia (green-blind)
#F2DB5C
Tritanopia (blue-blind)
#E6D5C4
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #d8e252;
/* rgb */ color: rgb(216, 226, 82);
/* oklch */ color: oklch(87.9% 0.164 113.1);
Tailwind
colors: {
  custom: {
    50: '#e7ea89',
    500: '#d8e252',
    950: '#000000',
  },
}
SCSS
$custom: #d8e252;
$custom-light: #e7ea89;
$custom-dark: #000000;
JSON
{
  "hex": "#d8e252",
  "rgb": {
    "r": 216,
    "g": 226,
    "b": 82
  },
  "hsl": {
    "h": 64.167,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.87886,
    "c": 0.16411,
    "h": 113.1
  },
  "luminance": 0.69601
}

Semantic roles & 50–950 ramp

primary
#D8E252
secondary
#3E36A2
accent
#12D320
background
#FFFEFC
surface
#FEFDF4
border
#D6D5CE
text
#16160C
muted
#85847F

Preview Lab

Preview with #D8E252

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

Preview Lab → · Contrast checker → · Palette generator →

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