#D2D97B#D2D97B

#D2D97B is a very light, moderate yellow. Relative luminance 0.648; OKLCH L 86.0% C 0.118 H 112.3°. Best body text is #000000 at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#D2D97B
RGBrgb(210, 217, 123)
HSLhsl(64, 55%, 67%)
HSVhsv(64, 43%, 85%)
CMYKcmyk(3.2%, 0%, 43.3%, 14.9%)
CIE-LABlab(84.36, -16.01, 45.34)
CIE-LCHlch(84.36, 48.08, 109.45°)
OKLaboklab(85.96% -0.0449 0.1092)
OKLCHoklch(85.96% 0.118 112.3)
XYZxyz(54.9671, 64.7583, 28.3390)
Luminance0.6476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D97B #827BD9
analogous
#D9B17B #D2D97B #A3D97B
triadic
#D2D97B #7BD2D9 #D97BD2
tetradic
#D2D97B #7BD9B1 #827BD9 #D97BA3
square
#D2D97B #7BD9B1 #827BD9 #D97BA3
split-complementary
#D2D97B #7BA3D9 #B17BD9
monochromatic
#A0A931 #C2CB4B #D2D97B #E2E7AB #F2F4DA

Accessibility & contrast

On white

1.51
#D2D97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.95
#D2D97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D97B
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D97B#FFFFFF#000000##000000
##D2D97B1.001.5113.9513.95
#FFFFFF1.511.0021.0021.00
#00000013.9521.001.001.00
##00000013.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D173
Deuteranopia (green-blind)
#E6D480
Tritanopia (blue-blind)
#DDCFC3
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d2d97b;
/* rgb */ color: rgb(210, 217, 123);
/* oklch */ color: oklch(86.0% 0.118 112.3);
Tailwind
colors: {
  custom: {
    50: '#e1e4a3',
    500: '#d2d97b',
    950: '#000000',
  },
}
SCSS
$custom: #d2d97b;
$custom-light: #e1e4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d97b",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 123
  },
  "hsl": {
    "h": 64.468,
    "s": 55.294,
    "l": 66.667
  },
  "oklch": {
    "l": 0.85957,
    "c": 0.1181,
    "h": 112.3
  },
  "luminance": 0.64757
}

Semantic roles & 50–950 ramp

primary
#D2D97B
secondary
#534CAC
accent
#23C32F
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D97B

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

Preview Lab → · Contrast checker → · Palette generator →

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