#D8D166#D8D166

#D8D166 is a very light, vivid yellow. Relative luminance 0.612; OKLCH L 84.5% C 0.129 H 105.4°. Best body text is #000000 at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#D8D166
RGBrgb(216, 209, 102)
HSLhsl(56, 59%, 62%)
HSVhsv(56, 53%, 85%)
CMYKcmyk(0%, 3.2%, 52.8%, 15.3%)
CIE-LABlab(82.47, -11.54, 53.21)
CIE-LCHlch(82.47, 54.44, 102.23°)
OKLaboklab(84.48% -0.0345 0.1248)
OKLCHoklch(84.48% 0.129 105.4)
XYZxyz(53.5192, 61.1608, 21.5538)
Luminance0.6116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D166 #666DD8
analogous
#D89866 #D8D166 #A6D866
triadic
#D8D166 #66D8D1 #D166D8
tetradic
#D8D166 #66D898 #666DD8 #D866A6
square
#D8D166 #66D898 #666DD8 #D866A6
split-complementary
#D8D166 #66A6D8 #9866D8
monochromatic
#9C9528 #CCC235 #D8D166 #E4E097 #F1EEC8

Accessibility & contrast

On white

1.59
#D8D166 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.23
#D8D166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D166
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D166#FFFFFF#000000##000000
##D8D1661.001.5913.2313.23
#FFFFFF1.591.0021.0021.00
#00000013.2321.001.001.00
##00000013.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CA5C
Deuteranopia (green-blind)
#E3D06B
Tritanopia (blue-blind)
#E6C5B9
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d8d166;
/* rgb */ color: rgb(216, 209, 102);
/* oklch */ color: oklch(84.5% 0.129 105.4);
Tailwind
colors: {
  custom: {
    50: '#e6de95',
    500: '#d8d166',
    950: '#000000',
  },
}
SCSS
$custom: #d8d166;
$custom-light: #e6de95;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d166",
  "rgb": {
    "r": 216,
    "g": 209,
    "b": 102
  },
  "hsl": {
    "h": 56.316,
    "s": 59.375,
    "l": 62.353
  },
  "oklch": {
    "l": 0.84484,
    "c": 0.12943,
    "h": 105.4
  },
  "luminance": 0.61159
}

Semantic roles & 50–950 ramp

primary
#D8D166
secondary
#4248A0
accent
#29C71E
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D8D166

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

Preview Lab → · Contrast checker → · Palette generator →

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