#DCD797#DCD797

#DCD797 is a very light, moderate yellow. Relative luminance 0.661; OKLCH L 86.8% C 0.083 H 104.2°. Best body text is #000000 at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#DCD797
RGBrgb(220, 215, 151)
HSLhsl(56, 50%, 73%)
HSVhsv(56, 31%, 86%)
CMYKcmyk(0%, 2.3%, 31.4%, 13.7%)
CIE-LABlab(85.02, -7.96, 32.27)
CIE-LCHlch(85.02, 33.24, 103.85°)
OKLaboklab(86.81% -0.0203 0.0804)
OKLCHoklch(86.81% 0.083 104.2)
XYZxyz(59.4020, 66.0521, 38.8923)
Luminance0.6605 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD797 #979CDC
analogous
#DCB497 #DCD797 #BEDC97
triadic
#DCD797 #97DCD7 #D797DC
tetradic
#DCD797 #97DCB4 #979CDC #DC97BE
square
#DCD797 #97DCB4 #979CDC #DC97BE
split-complementary
#DCD797 #97BEDC #B497DC
monochromatic
#BAB13F #CDC569 #DCD797 #EBE9C5 #F7F6E8

Accessibility & contrast

On white

1.48
#DCD797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.21
#DCD797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD797
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD797#FFFFFF#000000##000000
##DCD7971.001.4814.2114.21
#FFFFFF1.481.0021.0021.00
#00000014.2121.001.001.00
##00000014.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2D293
Deuteranopia (green-blind)
#E4D699
Tritanopia (blue-blind)
#E6CFC6
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #dcd797;
/* rgb */ color: rgb(220, 215, 151);
/* oklch */ color: oklch(86.8% 0.083 104.2);
Tailwind
colors: {
  custom: {
    50: '#e7e3b6',
    500: '#dcd797',
    950: '#000000',
  },
}
SCSS
$custom: #dcd797;
$custom-light: #e7e3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd797",
  "rgb": {
    "r": 220,
    "g": 215,
    "b": 151
  },
  "hsl": {
    "h": 55.652,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.86809,
    "c": 0.08294,
    "h": 104.2
  },
  "luminance": 0.66051
}

Semantic roles & 50–950 ramp

primary
#DCD797
secondary
#6469B4
accent
#33BD29
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DCD797

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

Preview Lab → · Contrast checker → · Palette generator →

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