#DCD798#DCD798

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

Color values

HEX#DCD798
RGBrgb(220, 215, 152)
HSLhsl(56, 49%, 73%)
HSVhsv(56, 31%, 86%)
CMYKcmyk(0%, 2.3%, 30.9%, 13.7%)
CIE-LABlab(85.04, -7.83, 31.78)
CIE-LCHlch(85.04, 32.73, 103.84°)
OKLaboklab(86.83% -0.0199 0.0793)
OKLCHoklch(86.83% 0.082 104.1)
XYZxyz(59.4836, 66.0847, 39.3218)
Luminance0.6608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD798 #989DDC
analogous
#DCB598 #DCD798 #BFDC98
triadic
#DCD798 #98DCD7 #D798DC
tetradic
#DCD798 #98DCB5 #989DDC #DC98BF
square
#DCD798 #98DCB5 #989DDC #DC98BF
split-complementary
#DCD798 #98BFDC #B598DC
monochromatic
#BAB13F #CCC56A #DCD798 #ECE9C6 #F7F6E8

Accessibility & contrast

On white

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

On black

14.22
#DCD798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD798
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD798#FFFFFF#000000##000000
##DCD7981.001.4814.2214.22
#FFFFFF1.481.0021.0021.00
#00000014.2221.001.001.00
##00000014.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2D294
Deuteranopia (green-blind)
#E4D69A
Tritanopia (blue-blind)
#E6CFC7
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #dcd798;
/* rgb */ color: rgb(220, 215, 152);
/* oklch */ color: oklch(86.8% 0.082 104.1);
Tailwind
colors: {
  custom: {
    50: '#e7e3b7',
    500: '#dcd798',
    950: '#000000',
  },
}
SCSS
$custom: #dcd798;
$custom-light: #e7e3b7;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd798",
  "rgb": {
    "r": 220,
    "g": 215,
    "b": 152
  },
  "hsl": {
    "h": 55.588,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.86828,
    "c": 0.08174,
    "h": 104.1
  },
  "luminance": 0.66084
}

Semantic roles & 50–950 ramp

primary
#DCD798
secondary
#646AB4
accent
#34BD29
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DCD798

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

Preview Lab → · Contrast checker → · Palette generator →

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