#DCD997#DCD997

#DCD997 is a very light, moderate yellow. Relative luminance 0.671; OKLCH L 87.2% C 0.085 H 105.8°. Best body text is #000000 at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#DCD997
RGBrgb(220, 217, 151)
HSLhsl(57, 50%, 73%)
HSVhsv(57, 31%, 86%)
CMYKcmyk(0%, 1.4%, 31.4%, 13.7%)
CIE-LABlab(85.54, -8.97, 32.96)
CIE-LCHlch(85.54, 34.16, 105.22°)
OKLaboklab(87.22% -0.0233 0.082)
OKLCHoklch(87.22% 0.085 105.8)
XYZxyz(59.9144, 67.0768, 39.0631)
Luminance0.6708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD997 #979ADC
analogous
#DCB697 #DCD997 #BDDC97
triadic
#DCD997 #97DCD9 #D997DC
tetradic
#DCD997 #97DCB6 #979ADC #DC97BD
square
#DCD997 #97DCB6 #979ADC #DC97BD
split-complementary
#DCD997 #97BDDC #B697DC
monochromatic
#BAB53F #CDC869 #DCD997 #EBEAC5 #F7F7E8

Accessibility & contrast

On white

1.46
#DCD997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.42
#DCD997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD997
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD997#FFFFFF#000000##000000
##DCD9971.001.4614.4214.42
#FFFFFF1.461.0021.0021.00
#00000014.4221.001.001.00
##00000014.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D492
Deuteranopia (green-blind)
#E6D79A
Tritanopia (blue-blind)
#E6D1C8
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #dcd997;
/* rgb */ color: rgb(220, 217, 151);
/* oklch */ color: oklch(87.2% 0.085 105.8);
Tailwind
colors: {
  custom: {
    50: '#e7e4b6',
    500: '#dcd997',
    950: '#000000',
  },
}
SCSS
$custom: #dcd997;
$custom-light: #e7e4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd997",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 151
  },
  "hsl": {
    "h": 57.391,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.87221,
    "c": 0.08525,
    "h": 105.8
  },
  "luminance": 0.67076
}

Semantic roles & 50–950 ramp

primary
#DCD997
secondary
#6467B4
accent
#2FBD29
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DCD997

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

Preview Lab → · Contrast checker → · Palette generator →

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