#DCD998#DCD998

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

Color values

HEX#DCD998
RGBrgb(220, 217, 152)
HSLhsl(57, 49%, 73%)
HSVhsv(57, 31%, 86%)
CMYKcmyk(0%, 1.4%, 30.9%, 13.7%)
CIE-LABlab(85.56, -8.85, 32.47)
CIE-LCHlch(85.56, 33.65, 105.24°)
OKLaboklab(87.24% -0.0229 0.0809)
OKLCHoklch(87.24% 0.084 105.8)
XYZxyz(59.9960, 67.1095, 39.4926)
Luminance0.6711 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD998 #989BDC
analogous
#DCB798 #DCD998 #BDDC98
triadic
#DCD998 #98DCD9 #D998DC
tetradic
#DCD998 #98DCB7 #989BDC #DC98BD
square
#DCD998 #98DCB7 #989BDC #DC98BD
split-complementary
#DCD998 #98BDDC #B798DC
monochromatic
#BAB53F #CCC86A #DCD998 #ECEAC6 #F7F7E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DCD998#FFFFFF#000000##000000
##DCD9981.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)
#E4D494
Deuteranopia (green-blind)
#E6D79B
Tritanopia (blue-blind)
#E6D1C8
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #dcd998;
/* rgb */ color: rgb(220, 217, 152);
/* oklch */ color: oklch(87.2% 0.084 105.8);
Tailwind
colors: {
  custom: {
    50: '#e7e4b7',
    500: '#dcd998',
    950: '#000000',
  },
}
SCSS
$custom: #dcd998;
$custom-light: #e7e4b7;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd998",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 152
  },
  "hsl": {
    "h": 57.353,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.8724,
    "c": 0.08406,
    "h": 105.8
  },
  "luminance": 0.67108
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DCD998

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

Preview Lab → · Contrast checker → · Palette generator →

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