#D2E271#D2E271

#D2E271 is a very light, vivid yellow. Relative luminance 0.693; OKLCH L 87.7% C 0.139 H 116.0°. Best body text is #000000 at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#D2E271
RGBrgb(210, 226, 113)
HSLhsl(68, 66%, 66%)
HSVhsv(68, 50%, 89%)
CMYKcmyk(7.1%, 0%, 50%, 11.4%)
CIE-LABlab(86.65, -21.40, 52.89)
CIE-LCHlch(86.65, 57.05, 112.02°)
OKLaboklab(87.74% -0.0611 0.1252)
OKLCHoklch(87.74% 0.139 116)
XYZxyz(56.7561, 69.2873, 26.0035)
Luminance0.6929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2E271 #8171E2
analogous
#E2BA71 #D2E271 #9AE271
triadic
#D2E271 #71D2E2 #E271D2
tetradic
#D2E271 #71E2BA #8171E2 #E2719A
square
#D2E271 #71E2BA #8171E2 #E2719A
split-complementary
#D2E271 #719AE2 #BA71E2
monochromatic
#A0B425 #C2D83E #D2E271 #E2ECA4 #F2F7D7

Accessibility & contrast

On white

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

On black

14.86
#D2E271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2E271
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2E271#FFFFFF#000000##000000
##D2E2711.001.4114.8614.86
#FFFFFF1.411.0021.0021.00
#00000014.8621.001.001.00
##00000014.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD867
Deuteranopia (green-blind)
#EEDA77
Tritanopia (blue-blind)
#DDD7C8
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #d2e271;
/* rgb */ color: rgb(210, 226, 113);
/* oklch */ color: oklch(87.7% 0.139 116.0);
Tailwind
colors: {
  custom: {
    50: '#e2eb9c',
    500: '#d2e271',
    950: '#000000',
  },
}
SCSS
$custom: #d2e271;
$custom-light: #e2eb9c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2e271",
  "rgb": {
    "r": 210,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 68.496,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.87745,
    "c": 0.13929,
    "h": 116
  },
  "luminance": 0.69287
}

Semantic roles & 50–950 ramp

primary
#D2E271
secondary
#5342B5
accent
#18CE31
background
#FEFEFC
surface
#FCFDF5
border
#D5D5CF
text
#16160E
muted
#84847F

Preview Lab

Preview with #D2E271

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

Preview Lab → · Contrast checker → · Palette generator →

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