#D7E252#D7E252

#D7E252 is a very light, vivid yellow. Relative luminance 0.694; OKLCH L 87.8% C 0.164 H 113.5°. Best body text is #000000 at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#D7E252
RGBrgb(215, 226, 82)
HSLhsl(65, 71%, 60%)
HSVhsv(65, 64%, 89%)
CMYKcmyk(4.9%, 0%, 63.7%, 11.4%)
CIE-LABlab(86.73, -21.77, 66.55)
CIE-LCHlch(86.73, 70.02, 108.11°)
OKLaboklab(87.81% -0.0655 0.1508)
OKLCHoklch(87.81% 0.164 113.5)
XYZxyz(56.7452, 69.4501, 18.3970)
Luminance0.6945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7E252 #5D52E2
analogous
#E2A552 #D7E252 #8FE252
triadic
#D7E252 #52D7E2 #E252D7
tetradic
#D7E252 #52E2A5 #5D52E2 #E2528F
square
#D7E252 #52E2A5 #5D52E2 #E2528F
split-complementary
#D7E252 #528FE2 #A552E2
monochromatic
#959F1B #C6D323 #D7E252 #E3EB86 #EFF4BB

Accessibility & contrast

On white

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

On black

14.89
#D7E252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7E252
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7E252#FFFFFF#000000##000000
##D7E2521.001.4114.8914.89
#FFFFFF1.411.0021.0021.00
#00000014.8921.001.001.00
##00000014.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d7e252;
/* rgb */ color: rgb(215, 226, 82);
/* oklch */ color: oklch(87.8% 0.164 113.5);
Tailwind
colors: {
  custom: {
    50: '#e6eb89',
    500: '#d7e252',
    950: '#000000',
  },
}
SCSS
$custom: #d7e252;
$custom-light: #e6eb89;
$custom-dark: #000000;
JSON
{
  "hex": "#d7e252",
  "rgb": {
    "r": 215,
    "g": 226,
    "b": 82
  },
  "hsl": {
    "h": 64.583,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.87807,
    "c": 0.16436,
    "h": 113.5
  },
  "luminance": 0.69449
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D7E252

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

Preview Lab → · Contrast checker → · Palette generator →

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