#D7E251#D7E251

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

Color values

HEX#D7E251
RGBrgb(215, 226, 81)
HSLhsl(65, 71%, 60%)
HSVhsv(65, 64%, 89%)
CMYKcmyk(4.9%, 0%, 64.2%, 11.4%)
CIE-LABlab(86.72, -21.83, 66.93)
CIE-LCHlch(86.72, 70.40, 108.06°)
OKLaboklab(87.8% -0.0657 0.1514)
OKLCHoklch(87.8% 0.165 113.5)
XYZxyz(56.7074, 69.4350, 18.1980)
Luminance0.6943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7E251 #5C51E2
analogous
#E2A551 #D7E251 #8EE251
triadic
#D7E251 #51D7E2 #E251D7
tetradic
#D7E251 #51E2A5 #5C51E2 #E2518E
square
#D7E251 #51E2A5 #5C51E2 #E2518E
split-complementary
#D7E251 #518EE2 #A551E2
monochromatic
#949E1A #C5D323 #D7E251 #E3EB85 #EFF3BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7E251#FFFFFF#000000##000000
##D7E2511.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)
#F2D83D
Deuteranopia (green-blind)
#F2DB5B
Tritanopia (blue-blind)
#E5D5C4
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #d7e251;
/* rgb */ color: rgb(215, 226, 81);
/* oklch */ color: oklch(87.8% 0.165 113.5);
Tailwind
colors: {
  custom: {
    50: '#e6eb89',
    500: '#d7e251',
    950: '#000000',
  },
}
SCSS
$custom: #d7e251;
$custom-light: #e6eb89;
$custom-dark: #000000;
JSON
{
  "hex": "#d7e251",
  "rgb": {
    "r": 215,
    "g": 226,
    "b": 81
  },
  "hsl": {
    "h": 64.552,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.87799,
    "c": 0.16508,
    "h": 113.5
  },
  "luminance": 0.69434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D7E251

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

Preview Lab → · Contrast checker → · Palette generator →

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