#DCD98F#DCD98F

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

Color values

HEX#DCD98F
RGBrgb(220, 217, 143)
HSLhsl(58, 52%, 71%)
HSVhsv(58, 35%, 86%)
CMYKcmyk(0%, 1.4%, 35%, 13.7%)
CIE-LABlab(85.42, -9.93, 36.87)
CIE-LCHlch(85.42, 38.18, 105.07°)
OKLaboklab(87.08% -0.0264 0.0909)
OKLCHoklch(87.08% 0.095 106.2)
XYZxyz(59.2866, 66.8257, 35.7568)
Luminance0.6683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD98F #8F92DC
analogous
#DCB28F #DCD98F #B8DC8F
triadic
#DCD98F #8FDCD9 #D98FDC
tetradic
#DCD98F #8FDCB2 #8F92DC #DC8FB8
square
#DCD98F #8FDCB2 #8F92DC #DC8FB8
split-complementary
#DCD98F #8FB8DC #B28FDC
monochromatic
#B7B239 #CDC960 #DCD98F #EBE9BE #F8F7E8

Accessibility & contrast

On white

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

On black

14.37
#DCD98F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD98F
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD98F#FFFFFF#000000##000000
##DCD98F1.001.4614.3714.37
#FFFFFF1.461.0021.0021.00
#00000014.3721.001.001.00
##00000014.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dcd98f;
/* rgb */ color: rgb(220, 217, 143);
/* oklch */ color: oklch(87.1% 0.095 106.2);
Tailwind
colors: {
  custom: {
    50: '#e8e4b0',
    500: '#dcd98f',
    950: '#000000',
  },
}
SCSS
$custom: #dcd98f;
$custom-light: #e8e4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd98f",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 143
  },
  "hsl": {
    "h": 57.662,
    "s": 52.381,
    "l": 71.176
  },
  "oklch": {
    "l": 0.87079,
    "c": 0.09465,
    "h": 106.2
  },
  "luminance": 0.66825
}

Semantic roles & 50–950 ramp

primary
#DCD98F
secondary
#5C5FB3
accent
#2CC026
background
#FEFEFD
surface
#FDFCF7
border
#D5D5D0
text
#161510
muted
#848481

Preview Lab

Preview with #DCD98F

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

Preview Lab → · Contrast checker → · Palette generator →

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