#D8D781#D8D781

#D8D781 is a very light, moderate yellow. Relative luminance 0.648; OKLCH L 86.1% C 0.108 H 107.9°. Best body text is #000000 at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#D8D781
RGBrgb(216, 215, 129)
HSLhsl(59, 53%, 68%)
HSVhsv(59, 40%, 85%)
CMYKcmyk(0%, 0.5%, 40.3%, 15.3%)
CIE-LABlab(84.37, -12.03, 42.50)
CIE-LCHlch(84.37, 44.17, 105.80°)
OKLaboklab(86.11% -0.0333 0.1032)
OKLCHoklch(86.11% 0.108 107.9)
XYZxyz(56.5827, 64.7860, 30.2889)
Luminance0.6479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D781 #8182D8
analogous
#D8AB81 #D8D781 #AED881
triadic
#D8D781 #81D8D7 #D781D8
tetradic
#D8D781 #81D8AB #8182D8 #D881AE
square
#D8D781 #81D8AB #8182D8 #D881AE
split-complementary
#D8D781 #81AED8 #AB81D8
monochromatic
#AAA935 #CAC852 #D8D781 #E6E6B0 #F5F5DE

Accessibility & contrast

On white

1.50
#D8D781 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.96
#D8D781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D781
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D781#FFFFFF#000000##000000
##D8D7811.001.5013.9613.96
#FFFFFF1.501.0021.0021.00
#00000013.9621.001.001.00
##00000013.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D17A
Deuteranopia (green-blind)
#E5D485
Tritanopia (blue-blind)
#E3CDC2
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d8d781;
/* rgb */ color: rgb(216, 215, 129);
/* oklch */ color: oklch(86.1% 0.108 107.9);
Tailwind
colors: {
  custom: {
    50: '#e5e3a7',
    500: '#d8d781',
    950: '#000000',
  },
}
SCSS
$custom: #d8d781;
$custom-light: #e5e3a7;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d781",
  "rgb": {
    "r": 216,
    "g": 215,
    "b": 129
  },
  "hsl": {
    "h": 59.31,
    "s": 52.727,
    "l": 67.647
  },
  "oklch": {
    "l": 0.86108,
    "c": 0.1084,
    "h": 107.9
  },
  "luminance": 0.64785
}

Semantic roles & 50–950 ramp

primary
#D8D781
secondary
#5051AD
accent
#27C025
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D8D781

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

Preview Lab → · Contrast checker → · Palette generator →

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