#D8D181#D8D181

#D8D181 is a very light, moderate yellow. Relative luminance 0.618; OKLCH L 84.9% C 0.102 H 104.0°. Best body text is #000000 at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#D8D181
RGBrgb(216, 209, 129)
HSLhsl(55, 53%, 68%)
HSVhsv(55, 40%, 85%)
CMYKcmyk(0%, 3.2%, 40.3%, 15.3%)
CIE-LABlab(82.80, -8.99, 40.51)
CIE-LCHlch(82.80, 41.49, 102.52°)
OKLaboklab(84.86% -0.0246 0.0986)
OKLCHoklch(84.86% 0.102 104)
XYZxyz(55.0828, 61.7862, 29.7889)
Luminance0.6179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D181 #8188D8
analogous
#D8A581 #D8D181 #B4D881
triadic
#D8D181 #81D8D1 #D181D8
tetradic
#D8D181 #81D8A5 #8188D8 #D881B4
square
#D8D181 #81D8A5 #8188D8 #D881B4
split-complementary
#D8D181 #81B4D8 #A581D8
monochromatic
#AAA135 #CAC052 #D8D181 #E6E2B0 #F5F3DE

Accessibility & contrast

On white

1.57
#D8D181 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.36
#D8D181 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D181
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D181#FFFFFF#000000##000000
##D8D1811.001.5713.3613.36
#FFFFFF1.571.0021.0021.00
#00000013.3621.001.001.00
##00000013.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DECC7B
Deuteranopia (green-blind)
#E1D084
Tritanopia (blue-blind)
#E4C7BD
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d8d181;
/* rgb */ color: rgb(216, 209, 129);
/* oklch */ color: oklch(84.9% 0.102 104.0);
Tailwind
colors: {
  custom: {
    50: '#e5dfa7',
    500: '#d8d181',
    950: '#000000',
  },
}
SCSS
$custom: #d8d181;
$custom-light: #e5dfa7;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d181",
  "rgb": {
    "r": 216,
    "g": 209,
    "b": 129
  },
  "hsl": {
    "h": 55.172,
    "s": 52.727,
    "l": 67.647
  },
  "oklch": {
    "l": 0.84858,
    "c": 0.10166,
    "h": 104
  },
  "luminance": 0.61785
}

Semantic roles & 50–950 ramp

primary
#D8D181
secondary
#5057AD
accent
#32C025
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D8D181

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

Preview Lab → · Contrast checker → · Palette generator →

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