#DCC787#DCC787

#DCC787 is a very light, moderate yellow. Relative luminance 0.578; OKLCH L 83.3% C 0.086 H 92.0°. Best body text is #000000 at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#DCC787
RGBrgb(220, 199, 135)
HSLhsl(45, 55%, 70%)
HSVhsv(45, 39%, 86%)
CMYKcmyk(0%, 9.5%, 38.6%, 13.7%)
CIE-LABlab(80.64, -1.62, 34.74)
CIE-LCHlch(80.64, 34.77, 92.66°)
OKLaboklab(83.26% -0.003 0.0856)
OKLCHoklch(83.26% 0.086 92)
XYZxyz(54.3130, 57.8136, 31.2151)
Luminance0.5781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCC787 #879CDC
analogous
#DC9C87 #DCC787 #C7DC87
triadic
#DCC787 #87DCC7 #C787DC
tetradic
#DCC787 #87DC9C #879CDC #DC87C7
square
#DCC787 #87DC9C #879CDC #DC87C7
split-complementary
#DCC787 #87C7DC #9C87DC
monochromatic
#B49535 #CEB158 #DCC787 #EADDB6 #F8F3E6

Accessibility & contrast

On white

1.67
#DCC787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.56
#DCC787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCC787
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCC787#FFFFFF#000000##000000
##DCC7871.001.6712.5612.56
#FFFFFF1.671.0021.0021.00
#00000012.5621.001.001.00
##00000012.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C482
Deuteranopia (green-blind)
#DACB89
Tritanopia (blue-blind)
#E9BDB7
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #dcc787;
/* rgb */ color: rgb(220, 199, 135);
/* oklch */ color: oklch(83.3% 0.086 92.0);
Tailwind
colors: {
  custom: {
    50: '#e8d7aa',
    500: '#dcc787',
    950: '#000000',
  },
}
SCSS
$custom: #dcc787;
$custom-light: #e8d7aa;
$custom-dark: #000000;
JSON
{
  "hex": "#dcc787",
  "rgb": {
    "r": 220,
    "g": 199,
    "b": 135
  },
  "hsl": {
    "h": 45.176,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.83256,
    "c": 0.08569,
    "h": 92
  },
  "luminance": 0.57812
}

Semantic roles & 50–950 ramp

primary
#DCC787
secondary
#546CB3
accent
#4AC223
background
#FEFEFD
surface
#FDFBF7
border
#D5D4D0
text
#161410
muted
#848381

Preview Lab

Preview with #DCC787

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

Preview Lab → · Contrast checker → · Palette generator →

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