#DCD97F#DCD97F

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

Color values

HEX#DCD97F
RGBrgb(220, 217, 127)
HSLhsl(58, 57%, 68%)
HSVhsv(58, 42%, 86%)
CMYKcmyk(0%, 1.4%, 42.3%, 13.7%)
CIE-LABlab(85.19, -11.66, 44.58)
CIE-LCHlch(85.19, 46.08, 104.66°)
OKLaboklab(86.82% -0.0326 0.1077)
OKLCHoklch(86.82% 0.113 106.9)
XYZxyz(58.1599, 66.3750, 29.8225)
Luminance0.6637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD97F #7F82DC
analogous
#DCAB7F #DCD97F #B0DC7F
triadic
#DCD97F #7FDCD9 #D97FDC
tetradic
#DCD97F #7FDCAB #7F82DC #DC7FB0
square
#DCD97F #7FDCAB #7F82DC #DC7FB0
split-complementary
#DCD97F #7FB0DC #AB7FDC
monochromatic
#B0AC30 #CFCB4F #DCD97F #E9E7AF #F6F6DF

Accessibility & contrast

On white

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

On black

14.27
#DCD97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD97F
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD97F#FFFFFF#000000##000000
##DCD97F1.001.4714.2714.27
#FFFFFF1.471.0021.0021.00
#00000014.2721.001.001.00
##00000014.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D378
Deuteranopia (green-blind)
#E9D783
Tritanopia (blue-blind)
#E8CFC3
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dcd97f;
/* rgb */ color: rgb(220, 217, 127);
/* oklch */ color: oklch(86.8% 0.113 106.9);
Tailwind
colors: {
  custom: {
    50: '#e8e4a5',
    500: '#dcd97f',
    950: '#000000',
  },
}
SCSS
$custom: #dcd97f;
$custom-light: #e8e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd97f",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 58.065,
    "s": 57.055,
    "l": 68.039
  },
  "oklch": {
    "l": 0.86823,
    "c": 0.1125,
    "h": 106.9
  },
  "luminance": 0.66374
}

Semantic roles & 50–950 ramp

primary
#DCD97F
secondary
#4D50B2
accent
#26C521
background
#FEFEFC
surface
#FDFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #DCD97F

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

Preview Lab → · Contrast checker → · Palette generator →

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