#D8DF40#D8DF40

#D8DF40 is a very light, vivid yellow. Relative luminance 0.677; OKLCH L 87.1% C 0.173 H 112.0°. Best body text is #000000 at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#D8DF40
RGBrgb(216, 223, 64)
HSLhsl(63, 71%, 56%)
HSVhsv(63, 71%, 87%)
CMYKcmyk(3.1%, 0%, 71.3%, 12.5%)
CIE-LABlab(85.88, -20.88, 72.37)
CIE-LCHlch(85.88, 75.32, 106.10°)
OKLaboklab(87.11% -0.0648 0.1602)
OKLCHoklch(87.11% 0.173 112)
XYZxyz(55.6338, 67.7458, 14.9951)
Luminance0.6774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8DF40 #4740DF
analogous
#DF9740 #D8DF40 #89DF40
triadic
#D8DF40 #40D8DF #DF40D8
tetradic
#D8DF40 #40DF97 #4740DF #DF4089
square
#D8DF40 #40DF97 #4740DF #DF4089
split-complementary
#D8DF40 #4089DF #9740DF
monochromatic
#888D18 #BAC120 #D8DF40 #E3E874 #EDF1A9

Accessibility & contrast

On white

1.44
#D8DF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.55
#D8DF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8DF40
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8DF40#FFFFFF#000000##000000
##D8DF401.001.4414.5514.55
#FFFFFF1.441.0021.0021.00
#00000014.5521.001.001.00
##00000014.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D522
Deuteranopia (green-blind)
#F1D94D
Tritanopia (blue-blind)
#E7D1C0
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #d8df40;
/* rgb */ color: rgb(216, 223, 64);
/* oklch */ color: oklch(87.1% 0.173 112.0);
Tailwind
colors: {
  custom: {
    50: '#e8e87f',
    500: '#d8df40',
    950: '#000000',
  },
}
SCSS
$custom: #d8df40;
$custom-light: #e8e87f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8df40",
  "rgb": {
    "r": 216,
    "g": 223,
    "b": 64
  },
  "hsl": {
    "h": 62.642,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.8711,
    "c": 0.17277,
    "h": 112
  },
  "luminance": 0.67744
}

Semantic roles & 50–950 ramp

primary
#D8DF40
secondary
#353192
accent
#3AEE42
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17160B
muted
#85847E

Preview Lab

Preview with #D8DF40

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

Preview Lab → · Contrast checker → · Palette generator →

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