#DCD978#DCD978

#DCD978 is a very light, moderate yellow. Relative luminance 0.662; OKLCH L 86.7% C 0.120 H 107.1°. Best body text is #000000 at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#DCD978
RGBrgb(220, 217, 120)
HSLhsl(58, 59%, 67%)
HSVhsv(58, 45%, 86%)
CMYKcmyk(0%, 1.4%, 45.5%, 13.7%)
CIE-LABlab(85.10, -12.35, 47.88)
CIE-LCHlch(85.10, 49.45, 104.47°)
OKLaboklab(86.72% -0.0352 0.1146)
OKLCHoklch(86.72% 0.12 107.1)
XYZxyz(57.7194, 66.1988, 27.5028)
Luminance0.6620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD978 #787BDC
analogous
#DCA778 #DCD978 #ADDC78
triadic
#DCD978 #78DCD9 #D978DC
tetradic
#DCD978 #78DCA7 #787BDC #DC78AD
square
#DCD978 #78DCA7 #787BDC #DC78AD
split-complementary
#DCD978 #78ADDC #A778DC
monochromatic
#ADA92D #CFCB47 #DCD978 #E9E7A9 #F5F4D9

Accessibility & contrast

On white

1.47
#DCD978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.24
#DCD978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD978
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD978#FFFFFF#000000##000000
##DCD9781.001.4714.2414.24
#FFFFFF1.471.0021.0021.00
#00000014.2421.001.001.00
##00000014.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D270
Deuteranopia (green-blind)
#E9D77C
Tritanopia (blue-blind)
#E9CEC2
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dcd978;
/* rgb */ color: rgb(220, 217, 120);
/* oklch */ color: oklch(86.7% 0.120 107.1);
Tailwind
colors: {
  custom: {
    50: '#e8e4a1',
    500: '#dcd978',
    950: '#000000',
  },
}
SCSS
$custom: #dcd978;
$custom-light: #e8e4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd978",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 58.2,
    "s": 58.824,
    "l": 66.667
  },
  "oklch": {
    "l": 0.86723,
    "c": 0.11987,
    "h": 107.1
  },
  "luminance": 0.66197
}

Semantic roles & 50–950 ramp

primary
#DCD978
secondary
#494CAF
accent
#24C61F
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150F
muted
#848480

Preview Lab

Preview with #DCD978

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

Preview Lab → · Contrast checker → · Palette generator →

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