#DCD97D#DCD97D

#DCD97D is a very light, moderate yellow. Relative luminance 0.663; OKLCH L 86.8% C 0.115 H 106.9°. Best body text is #000000 at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#DCD97D
RGBrgb(220, 217, 125)
HSLhsl(58, 58%, 68%)
HSVhsv(58, 43%, 86%)
CMYKcmyk(0%, 1.4%, 43.2%, 13.7%)
CIE-LABlab(85.16, -11.87, 45.53)
CIE-LCHlch(85.16, 47.05, 104.61°)
OKLaboklab(86.79% -0.0334 0.1097)
OKLCHoklch(86.79% 0.115 106.9)
XYZxyz(58.0308, 66.3234, 29.1428)
Luminance0.6632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD97D #7D80DC
analogous
#DCA97D #DCD97D #B0DC7D
triadic
#DCD97D #7DDCD9 #D97DDC
tetradic
#DCD97D #7DDCA9 #7D80DC #DC7DB0
square
#DCD97D #7DDCA9 #7D80DC #DC7DB0
split-complementary
#DCD97D #7DB0DC #A97DDC
monochromatic
#AFAB2F #CFCB4D #DCD97D #E9E7AD #F6F5DD

Accessibility & contrast

On white

1.47
#DCD97D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.26
#DCD97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD97D
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD97D#FFFFFF#000000##000000
##DCD97D1.001.4714.2614.26
#FFFFFF1.471.0021.0021.00
#00000014.2621.001.001.00
##00000014.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D276
Deuteranopia (green-blind)
#E9D781
Tritanopia (blue-blind)
#E8CEC3
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dcd97d;
/* rgb */ color: rgb(220, 217, 125);
/* oklch */ color: oklch(86.8% 0.115 106.9);
Tailwind
colors: {
  custom: {
    50: '#e8e4a4',
    500: '#dcd97d',
    950: '#000000',
  },
}
SCSS
$custom: #dcd97d;
$custom-light: #e8e4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd97d",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 125
  },
  "hsl": {
    "h": 58.105,
    "s": 57.576,
    "l": 67.647
  },
  "oklch": {
    "l": 0.86794,
    "c": 0.11464,
    "h": 106.9
  },
  "luminance": 0.66322
}

Semantic roles & 50–950 ramp

primary
#DCD97D
secondary
#4C4FB2
accent
#26C520
background
#FEFEFC
surface
#FDFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #DCD97D

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

Preview Lab → · Contrast checker → · Palette generator →

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