#D8D540#D8D540

#D8D540 is a very light, vivid yellow. Relative luminance 0.626; OKLCH L 85.0% C 0.163 H 108.3°. Best body text is #000000 at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#D8D540
RGBrgb(216, 213, 64)
HSLhsl(59, 66%, 55%)
HSVhsv(59, 70%, 85%)
CMYKcmyk(0%, 1.4%, 70.4%, 15.3%)
CIE-LABlab(83.21, -15.98, 69.79)
CIE-LCHlch(83.21, 71.60, 102.90°)
OKLaboklab(84.98% -0.051 0.1547)
OKLCHoklch(84.98% 0.163 108.3)
XYZxyz(53.0405, 62.5593, 14.1307)
Luminance0.6256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D540 #4043D8
analogous
#D88940 #D8D540 #8FD840
triadic
#D8D540 #40D8D5 #D540D8
tetradic
#D8D540 #40D889 #4043D8 #D8408F
square
#D8D540 #40D889 #4043D8 #D8408F
split-complementary
#D8D540 #408FD8 #8940D8
monochromatic
#83811B #B6B325 #D8D540 #E2E073 #EDEBA6

Accessibility & contrast

On white

1.55
#D8D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.51
#D8D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D540
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D540#FFFFFF#000000##000000
##D8D5401.001.5513.5113.51
#FFFFFF1.551.0021.0021.00
#00000013.5121.001.001.00
##00000013.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC26
Deuteranopia (green-blind)
#E9D24B
Tritanopia (blue-blind)
#E7C7B8
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d8d540;
/* rgb */ color: rgb(216, 213, 64);
/* oklch */ color: oklch(85.0% 0.163 108.3);
Tailwind
colors: {
  custom: {
    50: '#e8e17e',
    500: '#d8d540',
    950: '#000000',
  },
}
SCSS
$custom: #d8d540;
$custom-light: #e8e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d540",
  "rgb": {
    "r": 216,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 58.816,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.84977,
    "c": 0.16292,
    "h": 108.3
  },
  "luminance": 0.62558
}

Semantic roles & 50–950 ramp

primary
#D8D540
secondary
#33348A
accent
#42E93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D8D540

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

Preview Lab → · Contrast checker → · Palette generator →

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