#D8E240#D8E240

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

Color values

HEX#D8E240
RGBrgb(216, 226, 64)
HSLhsl(64, 74%, 57%)
HSVhsv(64, 72%, 89%)
CMYKcmyk(4.4%, 0%, 71.7%, 11.4%)
CIE-LABlab(86.68, -22.33, 73.14)
CIE-LCHlch(86.68, 76.48, 106.98°)
OKLaboklab(87.75% -0.0688 0.1618)
OKLCHoklch(87.75% 0.176 113)
XYZxyz(56.4424, 69.3631, 15.2646)
Luminance0.6936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8E240 #4A40E2
analogous
#E29B40 #D8E240 #87E240
triadic
#D8E240 #40D8E2 #E240D8
tetradic
#D8E240 #40E29B #4A40E2 #E24087
square
#D8E240 #40E29B #4A40E2 #E24087
split-complementary
#D8E240 #4087E2 #9B40E2
monochromatic
#8A9216 #BCC71E #D8E240 #E3EA75 #EEF2AA

Accessibility & contrast

On white

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

On black

14.87
#D8E240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8E240
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8E240#FFFFFF#000000##000000
##D8E2401.001.4114.8714.87
#FFFFFF1.411.0021.0021.00
#00000014.8721.001.001.00
##00000014.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8e240;
/* rgb */ color: rgb(216, 226, 64);
/* oklch */ color: oklch(87.8% 0.176 113.0);
Tailwind
colors: {
  custom: {
    50: '#e8ea80',
    500: '#d8e240',
    950: '#000000',
  },
}
SCSS
$custom: #d8e240;
$custom-light: #e8ea80;
$custom-dark: #000000;
JSON
{
  "hex": "#d8e240",
  "rgb": {
    "r": 216,
    "g": 226,
    "b": 64
  },
  "hsl": {
    "h": 63.704,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.87754,
    "c": 0.17582,
    "h": 113
  },
  "luminance": 0.69362
}

Semantic roles & 50–950 ramp

primary
#D8E240
secondary
#363096
accent
#38F043
background
#FFFEFB
surface
#FEFDF2
border
#D6D5CC
text
#17160B
muted
#85847E

Preview Lab

Preview with #D8E240

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

Preview Lab → · Contrast checker → · Palette generator →

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