#DCD97B#DCD97B

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

Color values

HEX#DCD97B
RGBrgb(220, 217, 123)
HSLhsl(58, 58%, 67%)
HSVhsv(58, 44%, 86%)
CMYKcmyk(0%, 1.4%, 44.1%, 13.7%)
CIE-LABlab(85.14, -12.06, 46.47)
CIE-LCHlch(85.14, 48.01, 104.55°)
OKLaboklab(86.77% -0.0341 0.1117)
OKLCHoklch(86.77% 0.117 107)
XYZxyz(57.9043, 66.2728, 28.4767)
Luminance0.6627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD97B #7B7EDC
analogous
#DCA87B #DCD97B #AFDC7B
triadic
#DCD97B #7BDCD9 #D97BDC
tetradic
#DCD97B #7BDCA8 #7B7EDC #DC7BAF
square
#DCD97B #7BDCA8 #7B7EDC #DC7BAF
split-complementary
#DCD97B #7BAFDC #A87BDC
monochromatic
#AEAA2E #CFCB4B #DCD97B #E9E7AB #F6F5DC

Accessibility & contrast

On white

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

On black

14.25
#DCD97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD97B
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD97B#FFFFFF#000000##000000
##DCD97B1.001.4714.2514.25
#FFFFFF1.471.0021.0021.00
#00000014.2521.001.001.00
##00000014.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dcd97b;
/* rgb */ color: rgb(220, 217, 123);
/* oklch */ color: oklch(86.8% 0.117 107.0);
Tailwind
colors: {
  custom: {
    50: '#e8e4a3',
    500: '#dcd97b',
    950: '#000000',
  },
}
SCSS
$custom: #dcd97b;
$custom-light: #e8e4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd97b",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 123
  },
  "hsl": {
    "h": 58.144,
    "s": 58.084,
    "l": 67.255
  },
  "oklch": {
    "l": 0.86765,
    "c": 0.11675,
    "h": 107
  },
  "luminance": 0.66271
}

Semantic roles & 50–950 ramp

primary
#DCD97B
secondary
#4B4EB1
accent
#25C620
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150F
muted
#848480

Preview Lab

Preview with #DCD97B

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

Preview Lab → · Contrast checker → · Palette generator →

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