#DCD787#DCD787

#DCD787 is a very light, moderate yellow. Relative luminance 0.656; OKLCH L 86.5% C 0.101 H 105.2°. Best body text is #000000 at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#DCD787
RGBrgb(220, 215, 135)
HSLhsl(56, 55%, 70%)
HSVhsv(56, 39%, 86%)
CMYKcmyk(0%, 2.3%, 38.6%, 13.7%)
CIE-LABlab(84.78, -9.82, 40.08)
CIE-LCHlch(84.78, 41.26, 103.76°)
OKLaboklab(86.53% -0.0267 0.0979)
OKLCHoklch(86.53% 0.101 105.2)
XYZxyz(58.1897, 65.5672, 32.5074)
Luminance0.6557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD787 #878CDC
analogous
#DCAD87 #DCD787 #B6DC87
triadic
#DCD787 #87DCD7 #D787DC
tetradic
#DCD787 #87DCAD #878CDC #DC87B6
square
#DCD787 #87DCAD #878CDC #DC87B6
split-complementary
#DCD787 #87B6DC #AD87DC
monochromatic
#B4AD35 #CEC758 #DCD787 #EAE7B6 #F8F7E6

Accessibility & contrast

On white

1.49
#DCD787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.11
#DCD787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD787
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD787#FFFFFF#000000##000000
##DCD7871.001.4914.1114.11
#FFFFFF1.491.0021.0021.00
#00000014.1121.001.001.00
##00000014.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D181
Deuteranopia (green-blind)
#E6D68A
Tritanopia (blue-blind)
#E8CDC3
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #dcd787;
/* rgb */ color: rgb(220, 215, 135);
/* oklch */ color: oklch(86.5% 0.101 105.2);
Tailwind
colors: {
  custom: {
    50: '#e8e3ab',
    500: '#dcd787',
    950: '#000000',
  },
}
SCSS
$custom: #dcd787;
$custom-light: #e8e3ab;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd787",
  "rgb": {
    "r": 220,
    "g": 215,
    "b": 135
  },
  "hsl": {
    "h": 56.471,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.86532,
    "c": 0.10149,
    "h": 105.2
  },
  "luminance": 0.65566
}

Semantic roles & 50–950 ramp

primary
#DCD787
secondary
#545AB3
accent
#2DC223
background
#FEFEFD
surface
#FDFCF7
border
#D5D5D0
text
#161510
muted
#848481

Preview Lab

Preview with #DCD787

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

Preview Lab → · Contrast checker → · Palette generator →

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