#D8D97F#D8D97F

#D8D97F is a very light, moderate yellow. Relative luminance 0.658; OKLCH L 86.5% C 0.113 H 109.1°. Best body text is #000000 at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#D8D97F
RGBrgb(216, 217, 127)
HSLhsl(61, 54%, 67%)
HSVhsv(61, 41%, 85%)
CMYKcmyk(0.5%, 0%, 41.5%, 14.9%)
CIE-LABlab(84.87, -13.24, 44.12)
CIE-LCHlch(84.87, 46.06, 106.71°)
OKLaboklab(86.5% -0.0369 0.1067)
OKLCHoklch(86.5% 0.113 109.1)
XYZxyz(56.9634, 65.7581, 29.7664)
Luminance0.6576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D97F #807FD9
analogous
#D9AD7F #D8D97F #ABD97F
triadic
#D8D97F #7FD8D9 #D97FD8
tetradic
#D8D97F #7FD9AD #807FD9 #D97FAB
square
#D8D97F #7FD9AD #807FD9 #D97FAB
split-complementary
#D8D97F #7FABD9 #AD7FD9
monochromatic
#AAAB33 #CACB50 #D8D97F #E6E7AE #F5F5DD

Accessibility & contrast

On white

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

On black

14.15
#D8D97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D97F
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D97F#FFFFFF#000000##000000
##D8D97F1.001.4814.1514.15
#FFFFFF1.481.0021.0021.00
#00000014.1521.001.001.00
##00000014.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D278
Deuteranopia (green-blind)
#E7D683
Tritanopia (blue-blind)
#E3CFC3
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #d8d97f;
/* rgb */ color: rgb(216, 217, 127);
/* oklch */ color: oklch(86.5% 0.113 109.1);
Tailwind
colors: {
  custom: {
    50: '#e5e4a5',
    500: '#d8d97f',
    950: '#000000',
  },
}
SCSS
$custom: #d8d97f;
$custom-light: #e5e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d97f",
  "rgb": {
    "r": 216,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 60.667,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.86497,
    "c": 0.11289,
    "h": 109.1
  },
  "luminance": 0.65757
}

Semantic roles & 50–950 ramp

primary
#D8D97F
secondary
#4F4EAE
accent
#24C226
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D8D97F

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

Preview Lab → · Contrast checker → · Palette generator →

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