#D8E151#D8E151

#D8E151 is a very light, vivid yellow. Relative luminance 0.690; OKLCH L 87.7% C 0.164 H 112.7°. Best body text is #000000 at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#D8E151
RGBrgb(216, 225, 81)
HSLhsl(64, 71%, 60%)
HSVhsv(64, 64%, 88%)
CMYKcmyk(4%, 0%, 64%, 11.8%)
CIE-LABlab(86.53, -20.94, 66.76)
CIE-LCHlch(86.53, 69.96, 107.42°)
OKLaboklab(87.66% -0.0633 0.151)
OKLCHoklch(87.66% 0.164 112.7)
XYZxyz(56.7309, 69.0446, 18.1215)
Luminance0.6904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8E151 #5A51E1
analogous
#E1A251 #D8E151 #90E151
triadic
#D8E151 #51D8E1 #E151D8
tetradic
#D8E151 #51E1A2 #5A51E1 #E15190
square
#D8E151 #51E1A2 #5A51E1 #E15190
split-complementary
#D8E151 #5190E1 #A251E1
monochromatic
#949D1B #C6D124 #D8E151 #E4EA85 #EFF3B9

Accessibility & contrast

On white

1.42
#D8E151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.81
#D8E151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8E151
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8E151#FFFFFF#000000##000000
##D8E1511.001.4214.8114.81
#FFFFFF1.421.0021.0021.00
#00000014.8121.001.001.00
##00000014.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D73E
Deuteranopia (green-blind)
#F1DA5B
Tritanopia (blue-blind)
#E6D4C3
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #d8e151;
/* rgb */ color: rgb(216, 225, 81);
/* oklch */ color: oklch(87.7% 0.164 112.7);
Tailwind
colors: {
  custom: {
    50: '#e7ea89',
    500: '#d8e151',
    950: '#000000',
  },
}
SCSS
$custom: #d8e151;
$custom-light: #e7ea89;
$custom-dark: #000000;
JSON
{
  "hex": "#d8e151",
  "rgb": {
    "r": 216,
    "g": 225,
    "b": 81
  },
  "hsl": {
    "h": 63.75,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.87663,
    "c": 0.16376,
    "h": 112.7
  },
  "luminance": 0.69043
}

Semantic roles & 50–950 ramp

primary
#D8E151
secondary
#3D36A0
accent
#3AED46
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16160C
muted
#85847F

Preview Lab

Preview with #D8E151

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

Preview Lab → · Contrast checker → · Palette generator →

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