#D2D997#D2D997

#D2D997 is a very light, moderate yellow. Relative luminance 0.656; OKLCH L 86.4% C 0.086 H 113.1°. Best body text is #000000 at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#D2D997
RGBrgb(210, 217, 151)
HSLhsl(66, 46%, 72%)
HSVhsv(66, 30%, 85%)
CMYKcmyk(3.2%, 0%, 30.4%, 14.9%)
CIE-LABlab(84.77, -12.77, 31.80)
CIE-LCHlch(84.77, 34.27, 111.89°)
OKLaboklab(86.42% -0.0339 0.0793)
OKLCHoklch(86.42% 0.086 113.1)
XYZxyz(56.9772, 65.5623, 38.9254)
Luminance0.6556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D997 #9E97D9
analogous
#D9BF97 #D2D997 #B1D997
triadic
#D2D997 #97D2D9 #D997D2
tetradic
#D2D997 #97D9BF #9E97D9 #D997B1
square
#D2D997 #97D9BF #9E97D9 #D997B1
split-complementary
#D2D997 #97B1D9 #BF97D9
monochromatic
#A8B442 #BFC96A #D2D997 #E5E9C4 #F5F7E9

Accessibility & contrast

On white

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

On black

14.11
#D2D997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D997
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D997#FFFFFF#000000##000000
##D2D9971.001.4914.1114.11
#FFFFFF1.491.0021.0021.00
#00000014.1121.001.001.00
##00000014.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3D393
Deuteranopia (green-blind)
#E2D49A
Tritanopia (blue-blind)
#DAD1C8
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #d2d997;
/* rgb */ color: rgb(210, 217, 151);
/* oklch */ color: oklch(86.4% 0.086 113.1);
Tailwind
colors: {
  custom: {
    50: '#e0e4b6',
    500: '#d2d997',
    950: '#000000',
  },
}
SCSS
$custom: #d2d997;
$custom-light: #e0e4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d997",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 151
  },
  "hsl": {
    "h": 66.364,
    "s": 46.479,
    "l": 72.157
  },
  "oklch": {
    "l": 0.86421,
    "c": 0.08626,
    "h": 113.1
  },
  "luminance": 0.65562
}

Semantic roles & 50–950 ramp

primary
#D2D997
secondary
#6C64B0
accent
#2CBA3B
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #D2D997

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

Preview Lab → · Contrast checker → · Palette generator →

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