#DCD478#DCD478

#DCD478 is a very light, moderate yellow. Relative luminance 0.637; OKLCH L 85.7% C 0.115 H 104.2°. Best body text is #000000 at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#DCD478
RGBrgb(220, 212, 120)
HSLhsl(55, 59%, 67%)
HSVhsv(55, 45%, 86%)
CMYKcmyk(0%, 3.6%, 45.5%, 13.7%)
CIE-LABlab(83.79, -9.84, 46.28)
CIE-LCHlch(83.79, 47.31, 102.00°)
OKLaboklab(85.68% -0.028 0.111)
OKLCHoklch(85.68% 0.115 104.2)
XYZxyz(56.4501, 63.6603, 27.0797)
Luminance0.6366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD478 #7880DC
analogous
#DCA278 #DCD478 #B2DC78
triadic
#DCD478 #78DCD4 #D478DC
tetradic
#DCD478 #78DCA2 #7880DC #DC78B2
square
#DCD478 #78DCA2 #7880DC #DC78B2
split-complementary
#DCD478 #78B2DC #A278DC
monochromatic
#ADA32D #CFC547 #DCD478 #E9E3A9 #F5F3D9

Accessibility & contrast

On white

1.53
#DCD478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.73
#DCD478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD478
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD478#FFFFFF#000000##000000
##DCD4781.001.5313.7313.73
#FFFFFF1.531.0021.0021.00
#00000013.7321.001.001.00
##00000013.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CE70
Deuteranopia (green-blind)
#E5D37C
Tritanopia (blue-blind)
#E9C9BE
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #dcd478;
/* rgb */ color: rgb(220, 212, 120);
/* oklch */ color: oklch(85.7% 0.115 104.2);
Tailwind
colors: {
  custom: {
    50: '#e8e1a1',
    500: '#dcd478',
    950: '#000000',
  },
}
SCSS
$custom: #dcd478;
$custom-light: #e8e1a1;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd478",
  "rgb": {
    "r": 220,
    "g": 212,
    "b": 120
  },
  "hsl": {
    "h": 55.2,
    "s": 58.824,
    "l": 66.667
  },
  "oklch": {
    "l": 0.85683,
    "c": 0.1145,
    "h": 104.2
  },
  "luminance": 0.63659
}

Semantic roles & 50–950 ramp

primary
#DCD478
secondary
#4951AF
accent
#2CC61F
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150F
muted
#848480

Preview Lab

Preview with #DCD478

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

Preview Lab → · Contrast checker → · Palette generator →

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