#D5D297#D5D297

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

Color values

HEX#D5D297
RGBrgb(213, 210, 151)
HSLhsl(57, 42%, 71%)
HSVhsv(57, 29%, 84%)
CMYKcmyk(0%, 1.4%, 29.1%, 16.5%)
CIE-LABlab(83.17, -8.09, 29.70)
CIE-LCHlch(83.17, 30.78, 105.23°)
OKLaboklab(85.2% -0.0206 0.0743)
OKLCHoklch(85.2% 0.077 105.5)
XYZxyz(56.0734, 62.4747, 38.3771)
Luminance0.6247 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D297 #979AD5
analogous
#D5B397 #D5D297 #B9D597
triadic
#D5D297 #97D5D2 #D297D5
tetradic
#D5D297 #97D5B3 #979AD5 #D597B9
square
#D5D297 #97D5B3 #979AD5 #D597B9
split-complementary
#D5D297 #97B9D5 #B397D5
monochromatic
#ACA746 #C3BF6B #D5D297 #E7E5C3 #F6F6E9

Accessibility & contrast

On white

1.56
#D5D297 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.49
#D5D297 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D297
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D297#FFFFFF#000000##000000
##D5D2971.001.5613.4913.49
#FFFFFF1.561.0021.0021.00
#00000013.4921.001.001.00
##00000013.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCCD93
Deuteranopia (green-blind)
#DED199
Tritanopia (blue-blind)
#DECAC3
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d5d297;
/* rgb */ color: rgb(213, 210, 151);
/* oklch */ color: oklch(85.2% 0.077 105.5);
Tailwind
colors: {
  custom: {
    50: '#e2dfb6',
    500: '#d5d297',
    950: '#000000',
  },
}
SCSS
$custom: #d5d297;
$custom-light: #e2dfb6;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d297",
  "rgb": {
    "r": 213,
    "g": 210,
    "b": 151
  },
  "hsl": {
    "h": 57.097,
    "s": 42.466,
    "l": 71.373
  },
  "oklch": {
    "l": 0.85202,
    "c": 0.07713,
    "h": 105.5
  },
  "luminance": 0.62474
}

Semantic roles & 50–950 ramp

primary
#D5D297
secondary
#6568AB
accent
#36B630
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #D5D297

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

Preview Lab → · Contrast checker → · Palette generator →

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