#DCD796#DCD796

#DCD796 is a very light, moderate yellow. Relative luminance 0.660; OKLCH L 86.8% C 0.084 H 104.3°. Best body text is #000000 at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#DCD796
RGBrgb(220, 215, 150)
HSLhsl(56, 50%, 73%)
HSVhsv(56, 32%, 86%)
CMYKcmyk(0%, 2.3%, 31.8%, 13.7%)
CIE-LABlab(85.01, -8.08, 32.76)
CIE-LCHlch(85.01, 33.75, 103.85°)
OKLaboklab(86.79% -0.0207 0.0815)
OKLCHoklch(86.79% 0.084 104.3)
XYZxyz(59.3212, 66.0197, 38.4664)
Luminance0.6602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD796 #969BDC
analogous
#DCB496 #DCD796 #BEDC96
triadic
#DCD796 #96DCD7 #D796DC
tetradic
#DCD796 #96DCB4 #969BDC #DC96BE
square
#DCD796 #96DCB4 #969BDC #DC96BE
split-complementary
#DCD796 #96BEDC #B496DC
monochromatic
#BAB13E #CDC668 #DCD796 #EBE8C4 #F7F6E8

Accessibility & contrast

On white

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

On black

14.20
#DCD796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD796
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD796#FFFFFF#000000##000000
##DCD7961.001.4814.2014.20
#FFFFFF1.481.0021.0021.00
#00000014.2021.001.001.00
##00000014.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dcd796;
/* rgb */ color: rgb(220, 215, 150);
/* oklch */ color: oklch(86.8% 0.084 104.3);
Tailwind
colors: {
  custom: {
    50: '#e7e3b5',
    500: '#dcd796',
    950: '#000000',
  },
}
SCSS
$custom: #dcd796;
$custom-light: #e7e3b5;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd796",
  "rgb": {
    "r": 220,
    "g": 215,
    "b": 150
  },
  "hsl": {
    "h": 55.714,
    "s": 50,
    "l": 72.549
  },
  "oklch": {
    "l": 0.86791,
    "c": 0.08413,
    "h": 104.3
  },
  "luminance": 0.66019
}

Semantic roles & 50–950 ramp

primary
#DCD796
secondary
#6368B4
accent
#33BD28
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DCD796

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

Preview Lab → · Contrast checker → · Palette generator →

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