#DCD98E#DCD98E

#DCD98E is a very light, moderate yellow. Relative luminance 0.668; OKLCH L 87.1% C 0.096 H 106.3°. Best body text is #000000 at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#DCD98E
RGBrgb(220, 217, 142)
HSLhsl(58, 53%, 71%)
HSVhsv(58, 35%, 86%)
CMYKcmyk(0%, 1.4%, 35.5%, 13.7%)
CIE-LABlab(85.40, -10.04, 37.36)
CIE-LCHlch(85.40, 38.68, 105.05°)
OKLaboklab(87.06% -0.0268 0.092)
OKLCHoklch(87.06% 0.096 106.3)
XYZxyz(59.2112, 66.7956, 35.3596)
Luminance0.6679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD98E #8E91DC
analogous
#DCB28E #DCD98E #B8DC8E
triadic
#DCD98E #8EDCD9 #D98EDC
tetradic
#DCD98E #8EDCB2 #8E91DC #DC8EB8
square
#DCD98E #8EDCB2 #8E91DC #DC8EB8
split-complementary
#DCD98E #8EB8DC #B28EDC
monochromatic
#B7B239 #CEC95F #DCD98E #EAE9BD #F8F7E8

Accessibility & contrast

On white

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

On black

14.36
#DCD98E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD98E
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD98E#FFFFFF#000000##000000
##DCD98E1.001.4614.3614.36
#FFFFFF1.461.0021.0021.00
#00000014.3621.001.001.00
##00000014.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D389
Deuteranopia (green-blind)
#E7D791
Tritanopia (blue-blind)
#E7D0C6
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dcd98e;
/* rgb */ color: rgb(220, 217, 142);
/* oklch */ color: oklch(87.1% 0.096 106.3);
Tailwind
colors: {
  custom: {
    50: '#e8e4b0',
    500: '#dcd98e',
    950: '#000000',
  },
}
SCSS
$custom: #dcd98e;
$custom-light: #e8e4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd98e",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 142
  },
  "hsl": {
    "h": 57.692,
    "s": 52.703,
    "l": 70.98
  },
  "oklch": {
    "l": 0.87062,
    "c": 0.0958,
    "h": 106.3
  },
  "luminance": 0.66794
}

Semantic roles & 50–950 ramp

primary
#DCD98E
secondary
#5B5EB3
accent
#2BC025
background
#FEFEFD
surface
#FDFCF7
border
#D5D5D0
text
#161510
muted
#848481

Preview Lab

Preview with #DCD98E

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

Preview Lab → · Contrast checker → · Palette generator →

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