#DCD987#DCD987

#DCD987 is a very light, moderate yellow. Relative luminance 0.666; OKLCH L 86.9% C 0.104 H 106.6°. Best body text is #000000 at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#DCD987
RGBrgb(220, 217, 135)
HSLhsl(58, 55%, 70%)
HSVhsv(58, 39%, 86%)
CMYKcmyk(0%, 1.4%, 38.6%, 13.7%)
CIE-LABlab(85.30, -10.82, 40.75)
CIE-LCHlch(85.30, 42.16, 104.88°)
OKLaboklab(86.95% -0.0296 0.0994)
OKLCHoklch(86.95% 0.104 106.6)
XYZxyz(58.7021, 66.5919, 32.6782)
Luminance0.6659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD987 #878ADC
analogous
#DCAE87 #DCD987 #B5DC87
triadic
#DCD987 #87DCD9 #D987DC
tetradic
#DCD987 #87DCAE #878ADC #DC87B5
square
#DCD987 #87DCAE #878ADC #DC87B5
split-complementary
#DCD987 #87B5DC #AE87DC
monochromatic
#B4B035 #CECA58 #DCD987 #EAE8B6 #F8F7E6

Accessibility & contrast

On white

1.47
#DCD987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.32
#DCD987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD987
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD987#FFFFFF#000000##000000
##DCD9871.001.4714.3214.32
#FFFFFF1.471.0021.0021.00
#00000014.3221.001.001.00
##00000014.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D381
Deuteranopia (green-blind)
#E8D78A
Tritanopia (blue-blind)
#E7CFC5
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dcd987;
/* rgb */ color: rgb(220, 217, 135);
/* oklch */ color: oklch(86.9% 0.104 106.6);
Tailwind
colors: {
  custom: {
    50: '#e8e4ab',
    500: '#dcd987',
    950: '#000000',
  },
}
SCSS
$custom: #dcd987;
$custom-light: #e8e4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd987",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 57.882,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.86947,
    "c": 0.10374,
    "h": 106.6
  },
  "luminance": 0.66591
}

Semantic roles & 50–950 ramp

primary
#DCD987
secondary
#5458B3
accent
#29C223
background
#FEFEFD
surface
#FDFCF7
border
#D5D5D0
text
#161510
muted
#848481

Preview Lab

Preview with #DCD987

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

Preview Lab → · Contrast checker → · Palette generator →

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