#DCD97E#DCD97E

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

Color values

HEX#DCD97E
RGBrgb(220, 217, 126)
HSLhsl(58, 57%, 68%)
HSVhsv(58, 43%, 86%)
CMYKcmyk(0%, 1.4%, 42.7%, 13.7%)
CIE-LABlab(85.17, -11.77, 45.05)
CIE-LCHlch(85.17, 46.56, 104.64°)
OKLaboklab(86.81% -0.033 0.1087)
OKLCHoklch(86.81% 0.114 106.9)
XYZxyz(58.0950, 66.3491, 29.4810)
Luminance0.6635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD97E #7E81DC
analogous
#DCAA7E #DCD97E #B0DC7E
triadic
#DCD97E #7EDCD9 #D97EDC
tetradic
#DCD97E #7EDCAA #7E81DC #DC7EB0
square
#DCD97E #7EDCAA #7E81DC #DC7EB0
split-complementary
#DCD97E #7EB0DC #AA7EDC
monochromatic
#B0AC30 #CFCB4E #DCD97E #E9E7AE #F6F5DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DCD97E#FFFFFF#000000##000000
##DCD97E1.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)
#E7D377
Deuteranopia (green-blind)
#E9D782
Tritanopia (blue-blind)
#E8CEC3
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dcd97e;
/* rgb */ color: rgb(220, 217, 126);
/* oklch */ color: oklch(86.8% 0.114 106.9);
Tailwind
colors: {
  custom: {
    50: '#e8e4a5',
    500: '#dcd97e',
    950: '#000000',
  },
}
SCSS
$custom: #dcd97e;
$custom-light: #e8e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd97e",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 126
  },
  "hsl": {
    "h": 58.085,
    "s": 57.317,
    "l": 67.843
  },
  "oklch": {
    "l": 0.86809,
    "c": 0.11358,
    "h": 106.9
  },
  "luminance": 0.66348
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DCD97E

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

Preview Lab → · Contrast checker → · Palette generator →

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