#D9D978#D9D978

#D9D978 is a very light, vivid yellow. Relative luminance 0.657; OKLCH L 86.5% C 0.120 H 108.7°. Best body text is #000000 at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#D9D978
RGBrgb(217, 217, 120)
HSLhsl(60, 56%, 66%)
HSVhsv(60, 45%, 85%)
CMYKcmyk(0%, 0%, 44.7%, 14.9%)
CIE-LABlab(84.86, -13.54, 47.54)
CIE-LCHlch(84.86, 49.43, 105.90°)
OKLaboklab(86.48% -0.0385 0.1139)
OKLCHoklch(86.48% 0.12 108.7)
XYZxyz(56.8194, 65.7348, 27.4606)
Luminance0.6573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D978 #7878D9
analogous
#D9A878 #D9D978 #A8D978
triadic
#D9D978 #78D9D9 #D978D9
tetradic
#D9D978 #78D9A8 #7878D9 #D978A8
square
#D9D978 #78D9A8 #7878D9 #D978A8
split-complementary
#D9D978 #78A8D9 #A878D9
monochromatic
#A7A72F #CCCC48 #D9D978 #E6E6A8 #F4F4D8

Accessibility & contrast

On white

1.48
#D9D978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.15
#D9D978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D978
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D978#FFFFFF#000000##000000
##D9D9781.001.4814.1514.15
#FFFFFF1.481.0021.0021.00
#00000014.1521.001.001.00
##00000014.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d9d978;
/* rgb */ color: rgb(217, 217, 120);
/* oklch */ color: oklch(86.5% 0.120 108.7);
Tailwind
colors: {
  custom: {
    50: '#e6e4a1',
    500: '#d9d978',
    950: '#000000',
  },
}
SCSS
$custom: #d9d978;
$custom-light: #e6e4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d978",
  "rgb": {
    "r": 217,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 60,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.86477,
    "c": 0.12017,
    "h": 108.7
  },
  "luminance": 0.65733
}

Semantic roles & 50–950 ramp

primary
#D9D978
secondary
#4A4AAB
accent
#22C422
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150F
muted
#848480

Preview Lab

Preview with #D9D978

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

Preview Lab → · Contrast checker → · Palette generator →

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