#DCD87F#DCD87F

#DCD87F is a very light, moderate yellow. Relative luminance 0.659; OKLCH L 86.6% C 0.111 H 106.3°. Best body text is #000000 at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#DCD87F
RGBrgb(220, 216, 127)
HSLhsl(57, 57%, 68%)
HSVhsv(57, 42%, 86%)
CMYKcmyk(0%, 1.8%, 42.3%, 13.7%)
CIE-LABlab(84.93, -11.16, 44.25)
CIE-LCHlch(84.93, 45.64, 104.16°)
OKLaboklab(86.62% -0.0312 0.1069)
OKLCHoklch(86.62% 0.111 106.3)
XYZxyz(57.9029, 65.8611, 29.7368)
Luminance0.6586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD87F #7F83DC
analogous
#DCA97F #DCD87F #B2DC7F
triadic
#DCD87F #7FDCD8 #D87FDC
tetradic
#DCD87F #7FDCA9 #7F83DC #DC7FB2
square
#DCD87F #7FDCA9 #7F83DC #DC7FB2
split-complementary
#DCD87F #7FB2DC #A97FDC
monochromatic
#B0AB30 #CFC94F #DCD87F #E9E7AF #F6F5DF

Accessibility & contrast

On white

1.48
#DCD87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.17
#DCD87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD87F
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD87F#FFFFFF#000000##000000
##DCD87F1.001.4814.1714.17
#FFFFFF1.481.0021.0021.00
#00000014.1721.001.001.00
##00000014.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D278
Deuteranopia (green-blind)
#E8D683
Tritanopia (blue-blind)
#E8CEC3
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #dcd87f;
/* rgb */ color: rgb(220, 216, 127);
/* oklch */ color: oklch(86.6% 0.111 106.3);
Tailwind
colors: {
  custom: {
    50: '#e8e3a5',
    500: '#dcd87f',
    950: '#000000',
  },
}
SCSS
$custom: #dcd87f;
$custom-light: #e8e3a5;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd87f",
  "rgb": {
    "r": 220,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 57.419,
    "s": 57.055,
    "l": 68.039
  },
  "oklch": {
    "l": 0.86615,
    "c": 0.11139,
    "h": 106.3
  },
  "luminance": 0.6586
}

Semantic roles & 50–950 ramp

primary
#DCD87F
secondary
#4D51B2
accent
#28C521
background
#FEFEFC
surface
#FDFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #DCD87F

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

Preview Lab → · Contrast checker → · Palette generator →

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