#D9E252#D9E252

#D9E252 is a very light, vivid yellow. Relative luminance 0.698; OKLCH L 88.0% C 0.164 H 112.7°. Best body text is #000000 at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#D9E252
RGBrgb(217, 226, 82)
HSLhsl(64, 71%, 60%)
HSVhsv(64, 64%, 89%)
CMYKcmyk(4%, 0%, 63.7%, 11.4%)
CIE-LABlab(86.88, -20.96, 66.75)
CIE-LCHlch(86.88, 69.96, 107.43°)
OKLaboklab(87.97% -0.0633 0.1511)
OKLCHoklch(87.97% 0.164 112.7)
XYZxyz(57.3362, 69.7548, 18.4247)
Luminance0.6975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9E252 #5B52E2
analogous
#E2A352 #D9E252 #91E252
triadic
#D9E252 #52D9E2 #E252D9
tetradic
#D9E252 #52E2A3 #5B52E2 #E25291
square
#D9E252 #52E2A3 #5B52E2 #E25291
split-complementary
#D9E252 #5291E2 #A352E2
monochromatic
#979F1B #C8D323 #D9E252 #E5EB86 #F0F4BB

Accessibility & contrast

On white

1.40
#D9E252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.95
#D9E252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9E252
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9E252#FFFFFF#000000##000000
##D9E2521.001.4014.9514.95
#FFFFFF1.401.0021.0021.00
#00000014.9521.001.001.00
##00000014.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d9e252;
/* rgb */ color: rgb(217, 226, 82);
/* oklch */ color: oklch(88.0% 0.164 112.7);
Tailwind
colors: {
  custom: {
    50: '#e8ea89',
    500: '#d9e252',
    950: '#000000',
  },
}
SCSS
$custom: #d9e252;
$custom-light: #e8ea89;
$custom-dark: #000000;
JSON
{
  "hex": "#d9e252",
  "rgb": {
    "r": 217,
    "g": 226,
    "b": 82
  },
  "hsl": {
    "h": 63.75,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.87965,
    "c": 0.16386,
    "h": 112.7
  },
  "luminance": 0.69754
}

Semantic roles & 50–950 ramp

primary
#D9E252
secondary
#3D36A2
accent
#12D31E
background
#FFFEFC
surface
#FEFDF4
border
#D6D5CE
text
#16160C
muted
#85847F

Preview Lab

Preview with #D9E252

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

Preview Lab → · Contrast checker → · Palette generator →

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