#D2D97F#D2D97F

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

Color values

HEX#D2D97F
RGBrgb(210, 217, 127)
HSLhsl(65, 54%, 67%)
HSVhsv(65, 41%, 85%)
CMYKcmyk(3.2%, 0%, 41.5%, 14.9%)
CIE-LABlab(84.41, -15.59, 43.44)
CIE-LCHlch(84.41, 46.15, 109.74°)
OKLaboklab(86.02% -0.0434 0.1052)
OKLCHoklch(86.02% 0.114 112.4)
XYZxyz(55.2226, 64.8605, 29.6848)
Luminance0.6486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D97F #867FD9
analogous
#D9B37F #D2D97F #A5D97F
triadic
#D2D97F #7FD2D9 #D97FD2
tetradic
#D2D97F #7FD9B3 #867FD9 #D97FA5
square
#D2D97F #7FD9B3 #867FD9 #D97FA5
split-complementary
#D2D97F #7FA5D9 #B37FD9
monochromatic
#A2AB33 #C1CB50 #D2D97F #E3E7AE #F3F5DD

Accessibility & contrast

On white

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

On black

13.97
#D2D97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D97F
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D97F#FFFFFF#000000##000000
##D2D97F1.001.5013.9713.97
#FFFFFF1.501.0021.0021.00
#00000013.9721.001.001.00
##00000013.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d97f;
/* rgb */ color: rgb(210, 217, 127);
/* oklch */ color: oklch(86.0% 0.114 112.4);
Tailwind
colors: {
  custom: {
    50: '#e1e4a5',
    500: '#d2d97f',
    950: '#000000',
  },
}
SCSS
$custom: #d2d97f;
$custom-light: #e1e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d97f",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 64.667,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.86016,
    "c": 0.1138,
    "h": 112.4
  },
  "luminance": 0.6486
}

Semantic roles & 50–950 ramp

primary
#D2D97F
secondary
#564EAE
accent
#24C230
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D97F

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

Preview Lab → · Contrast checker → · Palette generator →

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