#D7E271#D7E271

#D7E271 is a very light, vivid yellow. Relative luminance 0.700; OKLCH L 88.1% C 0.138 H 113.8°. Best body text is #000000 at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#D7E271
RGBrgb(215, 226, 113)
HSLhsl(66, 66%, 66%)
HSVhsv(66, 50%, 89%)
CMYKcmyk(4.9%, 0%, 50%, 11.4%)
CIE-LABlab(87.01, -19.43, 53.42)
CIE-LCHlch(87.01, 56.84, 109.99°)
OKLaboklab(88.13% -0.0558 0.1263)
OKLCHoklch(88.13% 0.138 113.8)
XYZxyz(58.2023, 70.0329, 26.0712)
Luminance0.7003 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7E271 #7C71E2
analogous
#E2B571 #D7E271 #9FE271
triadic
#D7E271 #71D7E2 #E271D7
tetradic
#D7E271 #71E2B5 #7C71E2 #E2719F
square
#D7E271 #71E2B5 #7C71E2 #E2719F
split-complementary
#D7E271 #719FE2 #B571E2
monochromatic
#A6B425 #C9D83E #D7E271 #E5ECA4 #F4F7D7

Accessibility & contrast

On white

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

On black

15.01
#D7E271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7E271
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7E271#FFFFFF#000000##000000
##D7E2711.001.4015.0115.01
#FFFFFF1.401.0021.0021.00
#00000015.0121.001.001.00
##00000015.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D967
Deuteranopia (green-blind)
#EFDB77
Tritanopia (blue-blind)
#E3D7C8
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #d7e271;
/* rgb */ color: rgb(215, 226, 113);
/* oklch */ color: oklch(88.1% 0.138 113.8);
Tailwind
colors: {
  custom: {
    50: '#e5eb9c',
    500: '#d7e271',
    950: '#000000',
  },
}
SCSS
$custom: #d7e271;
$custom-light: #e5eb9c;
$custom-dark: #000000;
JSON
{
  "hex": "#d7e271",
  "rgb": {
    "r": 215,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 65.841,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.88129,
    "c": 0.13802,
    "h": 113.8
  },
  "luminance": 0.70032
}

Semantic roles & 50–950 ramp

primary
#D7E271
secondary
#4E42B5
accent
#18CE29
background
#FEFEFC
surface
#FDFDF5
border
#D5D5CF
text
#16160E
muted
#84847F

Preview Lab

Preview with #D7E271

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

Preview Lab → · Contrast checker → · Palette generator →

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