#D8D997#D8D997

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

Color values

HEX#D8D997
RGBrgb(216, 217, 151)
HSLhsl(61, 46%, 72%)
HSVhsv(61, 30%, 85%)
CMYKcmyk(0.5%, 0%, 30.4%, 14.9%)
CIE-LABlab(85.23, -10.50, 32.49)
CIE-LCHlch(85.23, 34.14, 107.90°)
OKLaboklab(86.9% -0.0275 0.0809)
OKLCHoklch(86.9% 0.085 108.8)
XYZxyz(58.7180, 66.4599, 39.0070)
Luminance0.6646 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D997 #9897D9
analogous
#D9B997 #D8D997 #B7D997
triadic
#D8D997 #97D8D9 #D997D8
tetradic
#D8D997 #97D9B9 #9897D9 #D997B7
square
#D8D997 #97D9B9 #9897D9 #D997B7
split-complementary
#D8D997 #97B7D9 #B997D9
monochromatic
#B2B442 #C7C96A #D8D997 #E9E9C4 #F7F7E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D8D997#FFFFFF#000000##000000
##D8D9971.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)
#E3D492
Deuteranopia (green-blind)
#E4D69A
Tritanopia (blue-blind)
#E1D1C8
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #d8d997;
/* rgb */ color: rgb(216, 217, 151);
/* oklch */ color: oklch(86.9% 0.085 108.8);
Tailwind
colors: {
  custom: {
    50: '#e5e4b6',
    500: '#d8d997',
    950: '#000000',
  },
}
SCSS
$custom: #d8d997;
$custom-light: #e5e4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d997",
  "rgb": {
    "r": 216,
    "g": 217,
    "b": 151
  },
  "hsl": {
    "h": 60.909,
    "s": 46.479,
    "l": 72.157
  },
  "oklch": {
    "l": 0.86897,
    "c": 0.08548,
    "h": 108.8
  },
  "luminance": 0.66459
}

Semantic roles & 50–950 ramp

primary
#D8D997
secondary
#6564B0
accent
#2CBA2E
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #D8D997

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

Preview Lab → · Contrast checker → · Palette generator →

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