#D8D87E#D8D87E

#D8D87E is a very light, moderate yellow. Relative luminance 0.652; OKLCH L 86.3% C 0.113 H 108.5°. Best body text is #000000 at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#D8D87E
RGBrgb(216, 216, 126)
HSLhsl(60, 54%, 67%)
HSVhsv(60, 42%, 85%)
CMYKcmyk(0%, 0%, 41.7%, 15.3%)
CIE-LABlab(84.60, -12.84, 44.26)
CIE-LCHlch(84.60, 46.09, 106.18°)
OKLaboklab(86.27% -0.0359 0.107)
OKLCHoklch(86.27% 0.113 108.5)
XYZxyz(56.6416, 65.2182, 29.3392)
Luminance0.6522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D87E #7E7ED8
analogous
#D8AB7E #D8D87E #ABD87E
triadic
#D8D87E #7ED8D8 #D87ED8
tetradic
#D8D87E #7ED8AB #7E7ED8 #D87EAB
square
#D8D87E #7ED8AB #7E7ED8 #D87EAB
split-complementary
#D8D87E #7EABD8 #AB7ED8
monochromatic
#A9A933 #CACA4F #D8D87E #E6E6AD #F4F4DC

Accessibility & contrast

On white

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

On black

14.04
#D8D87E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D87E
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D87E#FFFFFF#000000##000000
##D8D87E1.001.5014.0414.04
#FFFFFF1.501.0021.0021.00
#00000014.0421.001.001.00
##00000014.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D177
Deuteranopia (green-blind)
#E7D582
Tritanopia (blue-blind)
#E4CEC2
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d8d87e;
/* rgb */ color: rgb(216, 216, 126);
/* oklch */ color: oklch(86.3% 0.113 108.5);
Tailwind
colors: {
  custom: {
    50: '#e5e3a5',
    500: '#d8d87e',
    950: '#000000',
  },
}
SCSS
$custom: #d8d87e;
$custom-light: #e5e3a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d87e",
  "rgb": {
    "r": 216,
    "g": 216,
    "b": 126
  },
  "hsl": {
    "h": 60,
    "s": 53.571,
    "l": 67.059
  },
  "oklch": {
    "l": 0.86272,
    "c": 0.11281,
    "h": 108.5
  },
  "luminance": 0.65217
}

Semantic roles & 50–950 ramp

primary
#D8D87E
secondary
#4E4EAC
accent
#24C124
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D8D87E

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

Preview Lab → · Contrast checker → · Palette generator →

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