#D2D97D#D2D97D

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

Color values

HEX#D2D97D
RGBrgb(210, 217, 125)
HSLhsl(65, 55%, 67%)
HSVhsv(65, 42%, 85%)
CMYKcmyk(3.2%, 0%, 42.4%, 14.9%)
CIE-LABlab(84.39, -15.80, 44.39)
CIE-LCHlch(84.39, 47.12, 109.59°)
OKLaboklab(85.99% -0.0441 0.1072)
OKLCHoklch(85.99% 0.116 112.4)
XYZxyz(55.0936, 64.8089, 29.0051)
Luminance0.6481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D97D #847DD9
analogous
#D9B27D #D2D97D #A4D97D
triadic
#D2D97D #7DD2D9 #D97DD2
tetradic
#D2D97D #7DD9B2 #847DD9 #D97DA4
square
#D2D97D #7DD9B2 #847DD9 #D97DA4
split-complementary
#D2D97D #7DA4D9 #B27DD9
monochromatic
#A1AA32 #C2CB4E #D2D97D #E2E7AC #F3F5DC

Accessibility & contrast

On white

1.50
#D2D97D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.96
#D2D97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D97D
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D97D#FFFFFF#000000##000000
##D2D97D1.001.5013.9613.96
#FFFFFF1.501.0021.0021.00
#00000013.9621.001.001.00
##00000013.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D176
Deuteranopia (green-blind)
#E5D481
Tritanopia (blue-blind)
#DCCFC3
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d2d97d;
/* rgb */ color: rgb(210, 217, 125);
/* oklch */ color: oklch(86.0% 0.116 112.4);
Tailwind
colors: {
  custom: {
    50: '#e1e4a4',
    500: '#d2d97d',
    950: '#000000',
  },
}
SCSS
$custom: #d2d97d;
$custom-light: #e1e4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d97d",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 125
  },
  "hsl": {
    "h": 64.565,
    "s": 54.762,
    "l": 67.059
  },
  "oklch": {
    "l": 0.85986,
    "c": 0.11597,
    "h": 112.4
  },
  "luminance": 0.64808
}

Semantic roles & 50–950 ramp

primary
#D2D97D
secondary
#544DAD
accent
#23C22F
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D97D

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

Preview Lab → · Contrast checker → · Palette generator →

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