#DCD781#DCD781

#DCD781 is a very light, moderate yellow. Relative luminance 0.654; OKLCH L 86.4% C 0.108 H 105.5°. Best body text is #000000 at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#DCD781
RGBrgb(220, 215, 129)
HSLhsl(57, 57%, 68%)
HSVhsv(57, 41%, 86%)
CMYKcmyk(0%, 2.3%, 41.4%, 13.7%)
CIE-LABlab(84.69, -10.45, 42.97)
CIE-LCHlch(84.69, 44.22, 103.67°)
OKLaboklab(86.44% -0.029 0.1042)
OKLCHoklch(86.44% 0.108 105.5)
XYZxyz(57.7791, 65.4029, 30.3450)
Luminance0.6540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD781 #8186DC
analogous
#DCA981 #DCD781 #B3DC81
triadic
#DCD781 #81DCD7 #D781DC
tetradic
#DCD781 #81DCA9 #8186DC #DC81B3
square
#DCD781 #81DCA9 #8186DC #DC81B3
split-complementary
#DCD781 #81B3DC #A981DC
monochromatic
#B1AA31 #CFC851 #DCD781 #E9E6B1 #F7F5E1

Accessibility & contrast

On white

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

On black

14.08
#DCD781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD781
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD781#FFFFFF#000000##000000
##DCD7811.001.4914.0814.08
#FFFFFF1.491.0021.0021.00
#00000014.0821.001.001.00
##00000014.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D17A
Deuteranopia (green-blind)
#E7D585
Tritanopia (blue-blind)
#E8CDC2
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #dcd781;
/* rgb */ color: rgb(220, 215, 129);
/* oklch */ color: oklch(86.4% 0.108 105.5);
Tailwind
colors: {
  custom: {
    50: '#e8e3a7',
    500: '#dcd781',
    950: '#000000',
  },
}
SCSS
$custom: #dcd781;
$custom-light: #e8e3a7;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd781",
  "rgb": {
    "r": 220,
    "g": 215,
    "b": 129
  },
  "hsl": {
    "h": 56.703,
    "s": 56.522,
    "l": 68.431
  },
  "oklch": {
    "l": 0.86438,
    "c": 0.10812,
    "h": 105.5
  },
  "luminance": 0.65402
}

Semantic roles & 50–950 ramp

primary
#DCD781
secondary
#4F54B3
accent
#2AC421
background
#FEFEFC
surface
#FDFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #DCD781

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

Preview Lab → · Contrast checker → · Palette generator →

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