#DCD97C#DCD97C

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

Color values

HEX#DCD97C
RGBrgb(220, 217, 124)
HSLhsl(58, 58%, 67%)
HSVhsv(58, 44%, 86%)
CMYKcmyk(0%, 1.4%, 43.6%, 13.7%)
CIE-LABlab(85.15, -11.96, 46.00)
CIE-LCHlch(85.15, 47.53, 104.58°)
OKLaboklab(86.78% -0.0337 0.1107)
OKLCHoklch(86.78% 0.116 107)
XYZxyz(57.9673, 66.2980, 28.8081)
Luminance0.6630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD97C #7C7FDC
analogous
#DCA97C #DCD97C #AFDC7C
triadic
#DCD97C #7CDCD9 #D97CDC
tetradic
#DCD97C #7CDCA9 #7C7FDC #DC7CAF
square
#DCD97C #7CDCA9 #7C7FDC #DC7CAF
split-complementary
#DCD97C #7CAFDC #A97CDC
monochromatic
#AFAB2F #CFCB4C #DCD97C #E9E7AC #F6F5DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DCD97C#FFFFFF#000000##000000
##DCD97C1.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)
#E7D274
Deuteranopia (green-blind)
#E9D780
Tritanopia (blue-blind)
#E8CEC3
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dcd97c;
/* rgb */ color: rgb(220, 217, 124);
/* oklch */ color: oklch(86.8% 0.116 107.0);
Tailwind
colors: {
  custom: {
    50: '#e8e4a3',
    500: '#dcd97c',
    950: '#000000',
  },
}
SCSS
$custom: #dcd97c;
$custom-light: #e8e4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd97c",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 124
  },
  "hsl": {
    "h": 58.125,
    "s": 57.831,
    "l": 67.451
  },
  "oklch": {
    "l": 0.86779,
    "c": 0.1157,
    "h": 107
  },
  "luminance": 0.66297
}

Semantic roles & 50–950 ramp

primary
#DCD97C
secondary
#4B4EB1
accent
#25C520
background
#FEFEFC
surface
#FDFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #DCD97C

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

Preview Lab → · Contrast checker → · Palette generator →

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