#D2E252#D2E252

#D2E252 is a very light, vivid yellow. Relative luminance 0.687; OKLCH L 87.4% C 0.166 H 115.3°. Best body text is #000000 at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#D2E252
RGBrgb(210, 226, 82)
HSLhsl(67, 71%, 60%)
HSVhsv(67, 64%, 89%)
CMYKcmyk(7.1%, 0%, 63.7%, 11.4%)
CIE-LABlab(86.36, -23.79, 66.05)
CIE-LCHlch(86.36, 70.20, 109.81°)
OKLaboklab(87.42% -0.0708 0.1498)
OKLCHoklch(87.42% 0.166 115.3)
XYZxyz(55.2990, 68.7044, 18.3292)
Luminance0.6870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2E252 #6252E2
analogous
#E2AA52 #D2E252 #8AE252
triadic
#D2E252 #52D2E2 #E252D2
tetradic
#D2E252 #52E2AA #6252E2 #E2528A
square
#D2E252 #52E2AA #6252E2 #E2528A
split-complementary
#D2E252 #528AE2 #AA52E2
monochromatic
#909F1B #C0D323 #D2E252 #E0EB86 #EDF4BB

Accessibility & contrast

On white

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

On black

14.74
#D2E252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2E252
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2E252#FFFFFF#000000##000000
##D2E2521.001.4214.7414.74
#FFFFFF1.421.0021.0021.00
#00000014.7421.001.001.00
##00000014.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D73F
Deuteranopia (green-blind)
#F0D95C
Tritanopia (blue-blind)
#DFD6C4
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #d2e252;
/* rgb */ color: rgb(210, 226, 82);
/* oklch */ color: oklch(87.4% 0.166 115.3);
Tailwind
colors: {
  custom: {
    50: '#e3eb89',
    500: '#d2e252',
    950: '#000000',
  },
}
SCSS
$custom: #d2e252;
$custom-light: #e3eb89;
$custom-dark: #000000;
JSON
{
  "hex": "#d2e252",
  "rgb": {
    "r": 210,
    "g": 226,
    "b": 82
  },
  "hsl": {
    "h": 66.667,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.8742,
    "c": 0.16572,
    "h": 115.3
  },
  "luminance": 0.68704
}

Semantic roles & 50–950 ramp

primary
#D2E252
secondary
#4236A2
accent
#12D328
background
#FEFEFC
surface
#FDFDF4
border
#D5D5CE
text
#16160C
muted
#84847F

Preview Lab

Preview with #D2E252

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

Preview Lab → · Contrast checker → · Palette generator →

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