#DCD172#DCD172

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

Color values

HEX#DCD172
RGBrgb(220, 209, 114)
HSLhsl(54, 60%, 65%)
HSVhsv(54, 48%, 86%)
CMYKcmyk(0%, 5%, 48.2%, 13.7%)
CIE-LABlab(82.93, -8.88, 48.14)
CIE-LCHlch(82.93, 48.96, 100.45°)
OKLaboklab(84.98% -0.0258 0.1147)
OKLCHoklch(84.98% 0.118 102.7)
XYZxyz(55.3544, 62.0332, 24.9741)
Luminance0.6203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD172 #727DDC
analogous
#DC9C72 #DCD172 #B2DC72
triadic
#DCD172 #72DCD1 #D172DC
tetradic
#DCD172 #72DC9C #727DDC #DC72B2
square
#DCD172 #72DC9C #727DDC #DC72B2
split-complementary
#DCD172 #72B2DC #9C72DC
monochromatic
#AA9C2A #D0C141 #DCD172 #E8E1A3 #F4F1D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DCD172#FFFFFF#000000##000000
##DCD1721.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)
#E0CB6A
Deuteranopia (green-blind)
#E4D176
Tritanopia (blue-blind)
#EAC6BB
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #dcd172;
/* rgb */ color: rgb(220, 209, 114);
/* oklch */ color: oklch(85.0% 0.118 102.7);
Tailwind
colors: {
  custom: {
    50: '#e9de9c',
    500: '#dcd172',
    950: '#000000',
  },
}
SCSS
$custom: #dcd172;
$custom-light: #e9de9c;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd172",
  "rgb": {
    "r": 220,
    "g": 209,
    "b": 114
  },
  "hsl": {
    "h": 53.774,
    "s": 60.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.84978,
    "c": 0.11758,
    "h": 102.7
  },
  "luminance": 0.62031
}

Semantic roles & 50–950 ramp

primary
#DCD172
secondary
#4651AC
accent
#2FC81E
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150E
muted
#85847F

Preview Lab

Preview with #DCD172

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

Preview Lab → · Contrast checker → · Palette generator →

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