#D8D381#D8D381

#D8D381 is a very light, moderate yellow. Relative luminance 0.628; OKLCH L 85.3% C 0.104 H 105.4°. Best body text is #000000 at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#D8D381
RGBrgb(216, 211, 129)
HSLhsl(57, 53%, 68%)
HSVhsv(57, 40%, 85%)
CMYKcmyk(0%, 2.3%, 40.3%, 15.3%)
CIE-LABlab(83.32, -10.01, 41.17)
CIE-LCHlch(83.32, 42.37, 103.66°)
OKLaboklab(85.27% -0.0275 0.1001)
OKLCHoklch(85.27% 0.104 105.4)
XYZxyz(55.5766, 62.7738, 29.9535)
Luminance0.6277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D381 #8186D8
analogous
#D8A881 #D8D381 #B1D881
triadic
#D8D381 #81D8D3 #D381D8
tetradic
#D8D381 #81D8A8 #8186D8 #D881B1
square
#D8D381 #81D8A8 #8186D8 #D881B1
split-complementary
#D8D381 #81B1D8 #A881D8
monochromatic
#AAA335 #CAC352 #D8D381 #E6E3B0 #F5F4DE

Accessibility & contrast

On white

1.55
#D8D381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.55
#D8D381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D381
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D381#FFFFFF#000000##000000
##D8D3811.001.5513.5513.55
#FFFFFF1.551.0021.0021.00
#00000013.5521.001.001.00
##00000013.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CD7B
Deuteranopia (green-blind)
#E2D184
Tritanopia (blue-blind)
#E4C9BF
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d8d381;
/* rgb */ color: rgb(216, 211, 129);
/* oklch */ color: oklch(85.3% 0.104 105.4);
Tailwind
colors: {
  custom: {
    50: '#e5e0a7',
    500: '#d8d381',
    950: '#000000',
  },
}
SCSS
$custom: #d8d381;
$custom-light: #e5e0a7;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d381",
  "rgb": {
    "r": 216,
    "g": 211,
    "b": 129
  },
  "hsl": {
    "h": 56.552,
    "s": 52.727,
    "l": 67.647
  },
  "oklch": {
    "l": 0.85274,
    "c": 0.10385,
    "h": 105.4
  },
  "luminance": 0.62772
}

Semantic roles & 50–950 ramp

primary
#D8D381
secondary
#5055AD
accent
#2EC025
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D8D381

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

Preview Lab → · Contrast checker → · Palette generator →

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