#D7F251#D7F251

#D7F251 is a very light, vivid yellow-green. Relative luminance 0.785; OKLCH L 91.3% C 0.183 H 118.4°. Best body text is #000000 at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#D7F251
RGBrgb(215, 242, 81)
HSLhsl(70, 86%, 63%)
HSVhsv(70, 67%, 95%)
CMYKcmyk(11.2%, 0%, 66.5%, 5.1%)
CIE-LABlab(91.03, -29.42, 71.38)
CIE-LCHlch(91.03, 77.21, 112.40°)
OKLaboklab(91.26% -0.0869 0.1608)
OKLCHoklch(91.26% 0.183 118.4)
XYZxyz(61.2629, 78.5459, 19.7165)
Luminance0.7854 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7F251 #6C51F2
analogous
#F2BC51 #D7F251 #86F251
triadic
#D7F251 #51D7F2 #F251D7
tetradic
#D7F251 #51F2BC #6C51F2 #F25186
square
#D7F251 #51F2BC #6C51F2 #F25186
split-complementary
#D7F251 #5186F2 #BC51F2
monochromatic
#9EBB0E #CAEE18 #D7F251 #E4F68A #F1FBC3

Accessibility & contrast

On white

1.26
#D7F251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.71
#D7F251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7F251
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7F251#FFFFFF#000000##000000
##D7F2511.001.2616.7116.71
#FFFFFF1.261.0021.0021.00
#00000016.7121.001.001.00
##00000016.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE539
Deuteranopia (green-blind)
#FEE65D
Tritanopia (blue-blind)
#E3E5D2
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #d7f251;
/* rgb */ color: rgb(215, 242, 81);
/* oklch */ color: oklch(91.3% 0.183 118.4);
Tailwind
colors: {
  custom: {
    50: '#e7f68a',
    500: '#d7f251',
    950: '#000000',
  },
}
SCSS
$custom: #d7f251;
$custom-light: #e7f68a;
$custom-dark: #000000;
JSON
{
  "hex": "#d7f251",
  "rgb": {
    "r": 215,
    "g": 242,
    "b": 81
  },
  "hsl": {
    "h": 70.062,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.91257,
    "c": 0.18278,
    "h": 118.4
  },
  "luminance": 0.78545
}

Semantic roles & 50–950 ramp

primary
#D7F251
secondary
#452EB9
accent
#03E328
background
#FFFFFC
surface
#FEFEF4
border
#D6D6CE
text
#16170C
muted
#85857F

Preview Lab

Preview with #D7F251

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

Preview Lab → · Contrast checker → · Palette generator →

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