#DCD398#DCD398

#DCD398 is a very light, moderate yellow. Relative luminance 0.641; OKLCH L 86.0% C 0.077 H 100.5°. Best body text is #000000 at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#DCD398
RGBrgb(220, 211, 152)
HSLhsl(52, 49%, 73%)
HSVhsv(52, 31%, 86%)
CMYKcmyk(0%, 4.1%, 30.9%, 13.7%)
CIE-LABlab(84.00, -5.79, 30.40)
CIE-LCHlch(84.00, 30.95, 100.78°)
OKLaboklab(86.01% -0.0141 0.076)
OKLCHoklch(86.01% 0.077 100.5)
XYZxyz(58.4775, 64.0725, 38.9864)
Luminance0.6407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD398 #98A1DC
analogous
#DCB198 #DCD398 #C3DC98
triadic
#DCD398 #98DCD3 #D398DC
tetradic
#DCD398 #98DCB1 #98A1DC #DC98C3
square
#DCD398 #98DCB1 #98A1DC #DC98C3
split-complementary
#DCD398 #98C3DC #B198DC
monochromatic
#BAAA3F #CCBF6A #DCD398 #ECE7C6 #F7F5E8

Accessibility & contrast

On white

1.52
#DCD398 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.81
#DCD398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD398
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD398#FFFFFF#000000##000000
##DCD3981.001.5213.8113.81
#FFFFFF1.521.0021.0021.00
#00000013.8121.001.001.00
##00000013.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DECF94
Deuteranopia (green-blind)
#E1D39A
Tritanopia (blue-blind)
#E6CBC4
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #dcd398;
/* rgb */ color: rgb(220, 211, 152);
/* oklch */ color: oklch(86.0% 0.077 100.5);
Tailwind
colors: {
  custom: {
    50: '#e7e0b6',
    500: '#dcd398',
    950: '#000000',
  },
}
SCSS
$custom: #dcd398;
$custom-light: #e7e0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd398",
  "rgb": {
    "r": 220,
    "g": 211,
    "b": 152
  },
  "hsl": {
    "h": 52.059,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.86008,
    "c": 0.07729,
    "h": 100.5
  },
  "luminance": 0.64071
}

Semantic roles & 50–950 ramp

primary
#DCD398
secondary
#646FB4
accent
#3CBD29
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DCD398

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

Preview Lab → · Contrast checker → · Palette generator →

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