#D8D996#D8D996

#D8D996 is a very light, moderate yellow. Relative luminance 0.664; OKLCH L 86.9% C 0.087 H 108.8°. Best body text is #000000 at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#D8D996
RGBrgb(216, 217, 150)
HSLhsl(61, 47%, 72%)
HSVhsv(61, 31%, 85%)
CMYKcmyk(0.5%, 0%, 30.9%, 14.9%)
CIE-LABlab(85.21, -10.62, 32.98)
CIE-LCHlch(85.21, 34.65, 107.85°)
OKLaboklab(86.88% -0.0279 0.0821)
OKLCHoklch(86.88% 0.087 108.8)
XYZxyz(58.6371, 66.4276, 38.5811)
Luminance0.6643 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D996 #9796D9
analogous
#D9B996 #D8D996 #B7D996
triadic
#D8D996 #96D8D9 #D996D8
tetradic
#D8D996 #96D9B9 #9796D9 #D996B7
square
#D8D996 #96D9B9 #9796D9 #D996B7
split-complementary
#D8D996 #96B7D9 #B996D9
monochromatic
#B2B441 #C7C969 #D8D996 #E9E9C3 #F7F7E9

Accessibility & contrast

On white

1.47
#D8D996 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.29
#D8D996 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D996
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D996#FFFFFF#000000##000000
##D8D9961.001.4714.2914.29
#FFFFFF1.471.0021.0021.00
#00000014.2921.001.001.00
##00000014.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D391
Deuteranopia (green-blind)
#E5D699
Tritanopia (blue-blind)
#E1D1C8
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #d8d996;
/* rgb */ color: rgb(216, 217, 150);
/* oklch */ color: oklch(86.9% 0.087 108.8);
Tailwind
colors: {
  custom: {
    50: '#e5e4b5',
    500: '#d8d996',
    950: '#000000',
  },
}
SCSS
$custom: #d8d996;
$custom-light: #e5e4b5;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d996",
  "rgb": {
    "r": 216,
    "g": 217,
    "b": 150
  },
  "hsl": {
    "h": 60.896,
    "s": 46.853,
    "l": 71.961
  },
  "oklch": {
    "l": 0.86879,
    "c": 0.08668,
    "h": 108.8
  },
  "luminance": 0.66427
}

Semantic roles & 50–950 ramp

primary
#D8D996
secondary
#6463B0
accent
#2BBA2E
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #D8D996

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

Preview Lab → · Contrast checker → · Palette generator →

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