#D8D978#D8D978

#D8D978 is a very light, vivid yellow. Relative luminance 0.656; OKLCH L 86.4% C 0.120 H 109.2°. Best body text is #000000 at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#D8D978
RGBrgb(216, 217, 120)
HSLhsl(61, 56%, 66%)
HSVhsv(61, 45%, 85%)
CMYKcmyk(0.5%, 0%, 44.7%, 14.9%)
CIE-LABlab(84.78, -13.94, 47.42)
CIE-LCHlch(84.78, 49.43, 106.38°)
OKLaboklab(86.4% -0.0395 0.1136)
OKLCHoklch(86.4% 0.12 109.2)
XYZxyz(56.5230, 65.5819, 27.4467)
Luminance0.6558 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D978 #7978D9
analogous
#D9A978 #D8D978 #A7D978
triadic
#D8D978 #78D8D9 #D978D8
tetradic
#D8D978 #78D9A9 #7978D9 #D978A7
square
#D8D978 #78D9A9 #7978D9 #D978A7
split-complementary
#D8D978 #78A7D9 #A978D9
monochromatic
#A6A72F #CACC48 #D8D978 #E6E6A8 #F4F4D8

Accessibility & contrast

On white

1.49
#D8D978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.12
#D8D978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D978
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D978#FFFFFF#000000##000000
##D8D9781.001.4914.1214.12
#FFFFFF1.491.0021.0021.00
#00000014.1221.001.001.00
##00000014.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D270
Deuteranopia (green-blind)
#E8D57D
Tritanopia (blue-blind)
#E4CEC2
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #d8d978;
/* rgb */ color: rgb(216, 217, 120);
/* oklch */ color: oklch(86.4% 0.120 109.2);
Tailwind
colors: {
  custom: {
    50: '#e6e4a1',
    500: '#d8d978',
    950: '#000000',
  },
}
SCSS
$custom: #d8d978;
$custom-light: #e6e4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d978",
  "rgb": {
    "r": 216,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 60.619,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.86396,
    "c": 0.1203,
    "h": 109.2
  },
  "luminance": 0.65581
}

Semantic roles & 50–950 ramp

primary
#D8D978
secondary
#4B4AAB
accent
#22C424
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150F
muted
#848480

Preview Lab

Preview with #D8D978

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

Preview Lab → · Contrast checker → · Palette generator →

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