#DCD173#DCD173

#DCD173 is a very light, moderate yellow. Relative luminance 0.621; OKLCH L 85.0% C 0.117 H 102.6°. Best body text is #000000 at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#DCD173
RGBrgb(220, 209, 115)
HSLhsl(54, 60%, 66%)
HSVhsv(54, 48%, 86%)
CMYKcmyk(0%, 5%, 47.7%, 13.7%)
CIE-LABlab(82.94, -8.79, 47.68)
CIE-LCHlch(82.94, 48.48, 100.44°)
OKLaboklab(84.99% -0.0255 0.1138)
OKLCHoklch(84.99% 0.117 102.6)
XYZxyz(55.4116, 62.0561, 25.2755)
Luminance0.6205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD173 #737EDC
analogous
#DC9C73 #DCD173 #B2DC73
triadic
#DCD173 #73DCD1 #D173DC
tetradic
#DCD173 #73DC9C #737EDC #DC73B2
square
#DCD173 #73DC9C #737EDC #DC73B2
split-complementary
#DCD173 #73B2DC #9C73DC
monochromatic
#AA9D2B #D0C142 #DCD173 #E8E1A4 #F4F1D5

Accessibility & contrast

On white

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

On black

13.41
#DCD173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD173
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD173#FFFFFF#000000##000000
##DCD1731.001.5713.4113.41
#FFFFFF1.571.0021.0021.00
#00000013.4121.001.001.00
##00000013.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dcd173;
/* rgb */ color: rgb(220, 209, 115);
/* oklch */ color: oklch(85.0% 0.117 102.6);
Tailwind
colors: {
  custom: {
    50: '#e9de9d',
    500: '#dcd173',
    950: '#000000',
  },
}
SCSS
$custom: #dcd173;
$custom-light: #e9de9d;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd173",
  "rgb": {
    "r": 220,
    "g": 209,
    "b": 115
  },
  "hsl": {
    "h": 53.714,
    "s": 60,
    "l": 65.686
  },
  "oklch": {
    "l": 0.84992,
    "c": 0.11656,
    "h": 102.6
  },
  "luminance": 0.62054
}

Semantic roles & 50–950 ramp

primary
#DCD173
secondary
#4751AD
accent
#30C81E
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150E
muted
#85847F

Preview Lab

Preview with #DCD173

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

Preview Lab → · Contrast checker → · Palette generator →

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