#D7D897#D7D897

#D7D897 is a very light, moderate yellow. Relative luminance 0.658; OKLCH L 86.6% C 0.084 H 108.8°. Best body text is #000000 at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#D7D897
RGBrgb(215, 216, 151)
HSLhsl(61, 45%, 72%)
HSVhsv(61, 30%, 85%)
CMYKcmyk(0.5%, 0%, 30.1%, 15.3%)
CIE-LABlab(84.89, -10.37, 32.03)
CIE-LCHlch(84.89, 33.66, 107.95°)
OKLaboklab(86.61% -0.0271 0.0798)
OKLCHoklch(86.61% 0.084 108.8)
XYZxyz(58.1664, 65.7941, 38.9075)
Luminance0.6579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D897 #9897D8
analogous
#D8B997 #D7D897 #B7D897
triadic
#D7D897 #97D7D8 #D897D7
tetradic
#D7D897 #97D8B9 #9897D8 #D897B7
square
#D7D897 #97D8B9 #9897D8 #D897B7
split-complementary
#D7D897 #97B7D8 #B997D8
monochromatic
#B0B243 #C6C76A #D7D897 #E8E9C4 #F6F7E9

Accessibility & contrast

On white

1.48
#D7D897 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.16
#D7D897 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D897
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D897#FFFFFF#000000##000000
##D7D8971.001.4814.1614.16
#FFFFFF1.481.0021.0021.00
#00000014.1621.001.001.00
##00000014.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2D393
Deuteranopia (green-blind)
#E3D59A
Tritanopia (blue-blind)
#E0D0C7
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #d7d897;
/* rgb */ color: rgb(215, 216, 151);
/* oklch */ color: oklch(86.6% 0.084 108.8);
Tailwind
colors: {
  custom: {
    50: '#e4e4b6',
    500: '#d7d897',
    950: '#000000',
  },
}
SCSS
$custom: #d7d897;
$custom-light: #e4e4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d897",
  "rgb": {
    "r": 215,
    "g": 216,
    "b": 151
  },
  "hsl": {
    "h": 60.923,
    "s": 45.455,
    "l": 71.961
  },
  "oklch": {
    "l": 0.86609,
    "c": 0.08433,
    "h": 108.8
  },
  "luminance": 0.65793
}

Semantic roles & 50–950 ramp

primary
#D7D897
secondary
#6564AF
accent
#2DB92F
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #D7D897

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

Preview Lab → · Contrast checker → · Palette generator →

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