#D2D397#D2D397

#D2D397 is a very light, moderate yellow. Relative luminance 0.625; OKLCH L 85.2% C 0.079 H 108.8°. Best body text is #000000 at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#D2D397
RGBrgb(210, 211, 151)
HSLhsl(61, 41%, 71%)
HSVhsv(61, 28%, 83%)
CMYKcmyk(0.5%, 0%, 28.4%, 17.3%)
CIE-LABlab(83.19, -9.74, 29.69)
CIE-LCHlch(83.19, 31.25, 108.16°)
OKLaboklab(85.17% -0.0253 0.0743)
OKLCHoklch(85.17% 0.079 108.8)
XYZxyz(55.4587, 62.5253, 38.4192)
Luminance0.6252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D397 #9897D3
analogous
#D3B697 #D2D397 #B4D397
triadic
#D2D397 #97D2D3 #D397D2
tetradic
#D2D397 #97D3B6 #9897D3 #D397B4
square
#D2D397 #97D3B6 #9897D3 #D397B4
split-complementary
#D2D397 #97B4D3 #B697D3
monochromatic
#A7A847 #BFC16C #D2D397 #E5E5C2 #F6F6E9

Accessibility & contrast

On white

1.55
#D2D397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.51
#D2D397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D397
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D397#FFFFFF#000000##000000
##D2D3971.001.5513.5113.51
#FFFFFF1.551.0021.0021.00
#00000013.5121.001.001.00
##00000013.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDCE93
Deuteranopia (green-blind)
#DED099
Tritanopia (blue-blind)
#DACCC3
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d2d397;
/* rgb */ color: rgb(210, 211, 151);
/* oklch */ color: oklch(85.2% 0.079 108.8);
Tailwind
colors: {
  custom: {
    50: '#e0e0b6',
    500: '#d2d397',
    950: '#000000',
  },
}
SCSS
$custom: #d2d397;
$custom-light: #e0e0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d397",
  "rgb": {
    "r": 210,
    "g": 211,
    "b": 151
  },
  "hsl": {
    "h": 61,
    "s": 40.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.85166,
    "c": 0.0785,
    "h": 108.8
  },
  "luminance": 0.62525
}

Semantic roles & 50–950 ramp

primary
#D2D397
secondary
#6665A9
accent
#32B434
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #D2D397

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

Preview Lab → · Contrast checker → · Palette generator →

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