#DCD171#DCD171

#DCD171 is a very light, moderate yellow. Relative luminance 0.620; OKLCH L 85.0% C 0.119 H 102.8°. Best body text is #000000 at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#DCD171
RGBrgb(220, 209, 113)
HSLhsl(54, 60%, 65%)
HSVhsv(54, 49%, 86%)
CMYKcmyk(0%, 5%, 48.6%, 13.7%)
CIE-LABlab(82.92, -8.97, 48.61)
CIE-LCHlch(82.92, 49.43, 100.45°)
OKLaboklab(84.97% -0.0262 0.1157)
OKLCHoklch(84.97% 0.119 102.8)
XYZxyz(55.2978, 62.0106, 24.6759)
Luminance0.6201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD171 #717CDC
analogous
#DC9C71 #DCD171 #B1DC71
triadic
#DCD171 #71DCD1 #D171DC
tetradic
#DCD171 #71DC9C #717CDC #DC71B1
square
#DCD171 #71DC9C #717CDC #DC71B1
split-complementary
#DCD171 #71B1DC #9C71DC
monochromatic
#A99C2A #D0C140 #DCD171 #E8E1A2 #F4F1D3

Accessibility & contrast

On white

1.57
#DCD171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.40
#DCD171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD171
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD171#FFFFFF#000000##000000
##DCD1711.001.5713.4013.40
#FFFFFF1.571.0021.0021.00
#00000013.4021.001.001.00
##00000013.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CB69
Deuteranopia (green-blind)
#E4D175
Tritanopia (blue-blind)
#EAC6BB
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #dcd171;
/* rgb */ color: rgb(220, 209, 113);
/* oklch */ color: oklch(85.0% 0.119 102.8);
Tailwind
colors: {
  custom: {
    50: '#e9de9c',
    500: '#dcd171',
    950: '#000000',
  },
}
SCSS
$custom: #dcd171;
$custom-light: #e9de9c;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd171",
  "rgb": {
    "r": 220,
    "g": 209,
    "b": 113
  },
  "hsl": {
    "h": 53.832,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.84965,
    "c": 0.1186,
    "h": 102.8
  },
  "luminance": 0.62009
}

Semantic roles & 50–950 ramp

primary
#DCD171
secondary
#4650AC
accent
#2FC81D
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150E
muted
#85847F

Preview Lab

Preview with #DCD171

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

Preview Lab → · Contrast checker → · Palette generator →

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