#D8F251#D8F251

#D8F251 is a very light, vivid yellow. Relative luminance 0.787; OKLCH L 91.3% C 0.182 H 118.1°. Best body text is #000000 at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#D8F251
RGBrgb(216, 242, 81)
HSLhsl(70, 86%, 63%)
HSVhsv(70, 67%, 95%)
CMYKcmyk(10.7%, 0%, 66.5%, 5.1%)
CIE-LABlab(91.10, -29.03, 71.47)
CIE-LCHlch(91.10, 77.14, 112.10°)
OKLaboklab(91.33% -0.0859 0.161)
OKLCHoklch(91.33% 0.182 118.1)
XYZxyz(61.5575, 78.6978, 19.7303)
Luminance0.7870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8F251 #6B51F2
analogous
#F2BB51 #D8F251 #88F251
triadic
#D8F251 #51D8F2 #F251D8
tetradic
#D8F251 #51F2BB #6B51F2 #F25188
square
#D8F251 #51F2BB #6B51F2 #F25188
split-complementary
#D8F251 #5188F2 #BB51F2
monochromatic
#9FBB0E #CBEE18 #D8F251 #E5F68A #F2FBC3

Accessibility & contrast

On white

1.25
#D8F251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.74
#D8F251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8F251
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8F251#FFFFFF#000000##000000
##D8F2511.001.2516.7416.74
#FFFFFF1.251.0021.0021.00
#00000016.7421.001.001.00
##00000016.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8f251;
/* rgb */ color: rgb(216, 242, 81);
/* oklch */ color: oklch(91.3% 0.182 118.1);
Tailwind
colors: {
  custom: {
    50: '#e7f68a',
    500: '#d8f251',
    950: '#000000',
  },
}
SCSS
$custom: #d8f251;
$custom-light: #e7f68a;
$custom-dark: #000000;
JSON
{
  "hex": "#d8f251",
  "rgb": {
    "r": 216,
    "g": 242,
    "b": 81
  },
  "hsl": {
    "h": 69.689,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.91329,
    "c": 0.18244,
    "h": 118.1
  },
  "luminance": 0.78697
}

Semantic roles & 50–950 ramp

primary
#D8F251
secondary
#442EB9
accent
#03E327
background
#FFFFFC
surface
#FEFEF4
border
#D6D6CE
text
#16170C
muted
#85857F

Preview Lab

Preview with #D8F251

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

Preview Lab → · Contrast checker → · Palette generator →

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