#D7E871#D7E871

#D7E871 is a very light, vivid yellow. Relative luminance 0.734; OKLCH L 89.4% C 0.145 H 116.2°. Best body text is #000000 at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#D7E871
RGBrgb(215, 232, 113)
HSLhsl(69, 72%, 68%)
HSVhsv(69, 51%, 91%)
CMYKcmyk(7.3%, 0%, 51.3%, 9%)
CIE-LABlab(88.62, -22.34, 55.31)
CIE-LCHlch(88.62, 59.65, 112.00°)
OKLaboklab(89.41% -0.064 0.1304)
OKLCHoklch(89.41% 0.145 116.2)
XYZxyz(59.8625, 73.3532, 26.6246)
Luminance0.7335 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7E871 #8271E8
analogous
#E8BD71 #D7E871 #9CE871
triadic
#D7E871 #71D7E8 #E871D7
tetradic
#D7E871 #71E8BD #8271E8 #E8719C
square
#D7E871 #71E8BD #8271E8 #E8719C
split-complementary
#D7E871 #719CE8 #BD71E8
monochromatic
#A9C01F #C8DF3C #D7E871 #E6F1A6 #F5F9DA

Accessibility & contrast

On white

1.34
#D7E871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.67
#D7E871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7E871
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7E871#FFFFFF#000000##000000
##D7E8711.001.3415.6715.67
#FFFFFF1.341.0021.0021.00
#00000015.6721.001.001.00
##00000015.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DE66
Deuteranopia (green-blind)
#F4DF78
Tritanopia (blue-blind)
#E2DDCD
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #d7e871;
/* rgb */ color: rgb(215, 232, 113);
/* oklch */ color: oklch(89.4% 0.145 116.2);
Tailwind
colors: {
  custom: {
    50: '#e5ef9d',
    500: '#d7e871',
    950: '#000000',
  },
}
SCSS
$custom: #d7e871;
$custom-light: #e5ef9d;
$custom-dark: #000000;
JSON
{
  "hex": "#d7e871",
  "rgb": {
    "r": 215,
    "g": 232,
    "b": 113
  },
  "hsl": {
    "h": 68.571,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.89411,
    "c": 0.14524,
    "h": 116.2
  },
  "luminance": 0.73353
}

Semantic roles & 50–950 ramp

primary
#D7E871
secondary
#513FBF
accent
#11D42D
background
#FEFFFC
surface
#FDFEF5
border
#D5D6CF
text
#16160E
muted
#84857F

Preview Lab

Preview with #D7E871

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

Preview Lab → · Contrast checker → · Palette generator →

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