#D5D397#D5D397

#D5D397 is a very light, moderate yellow. Relative luminance 0.630; OKLCH L 85.4% C 0.078 H 106.3°. Best body text is #000000 at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#D5D397
RGBrgb(213, 211, 151)
HSLhsl(58, 42%, 71%)
HSVhsv(58, 29%, 84%)
CMYKcmyk(0%, 0.9%, 29.1%, 16.5%)
CIE-LABlab(83.43, -8.60, 30.05)
CIE-LCHlch(83.43, 31.25, 105.97°)
OKLaboklab(85.41% -0.022 0.0752)
OKLCHoklch(85.41% 0.078 106.3)
XYZxyz(56.3210, 62.9700, 38.4596)
Luminance0.6297 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D397 #9799D5
analogous
#D5B497 #D5D397 #B8D597
triadic
#D5D397 #97D5D3 #D397D5
tetradic
#D5D397 #97D5B4 #9799D5 #D597B8
square
#D5D397 #97D5B4 #9799D5 #D597B8
split-complementary
#D5D397 #97B8D5 #B497D5
monochromatic
#ACA946 #C3C16B #D5D397 #E7E5C3 #F6F6E9

Accessibility & contrast

On white

1.54
#D5D397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.59
#D5D397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D397
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D397#FFFFFF#000000##000000
##D5D3971.001.5413.5913.59
#FFFFFF1.541.0021.0021.00
#00000013.5921.001.001.00
##00000013.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDCE93
Deuteranopia (green-blind)
#DFD199
Tritanopia (blue-blind)
#DECBC3
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d5d397;
/* rgb */ color: rgb(213, 211, 151);
/* oklch */ color: oklch(85.4% 0.078 106.3);
Tailwind
colors: {
  custom: {
    50: '#e2e0b6',
    500: '#d5d397',
    950: '#000000',
  },
}
SCSS
$custom: #d5d397;
$custom-light: #e2e0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d397",
  "rgb": {
    "r": 213,
    "g": 211,
    "b": 151
  },
  "hsl": {
    "h": 58.065,
    "s": 42.466,
    "l": 71.373
  },
  "oklch": {
    "l": 0.8541,
    "c": 0.07833,
    "h": 106.3
  },
  "luminance": 0.62969
}

Semantic roles & 50–950 ramp

primary
#D5D397
secondary
#6567AB
accent
#34B630
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #D5D397

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

Preview Lab → · Contrast checker → · Palette generator →

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