#DCD397#DCD397

#DCD397 is a very light, moderate yellow. Relative luminance 0.640; OKLCH L 86.0% C 0.079 H 100.6°. Best body text is #000000 at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#DCD397
RGBrgb(220, 211, 151)
HSLhsl(52, 50%, 73%)
HSVhsv(52, 31%, 86%)
CMYKcmyk(0%, 4.1%, 31.4%, 13.7%)
CIE-LABlab(83.99, -5.92, 30.89)
CIE-LCHlch(83.99, 31.46, 100.84°)
OKLaboklab(85.99% -0.0145 0.0772)
OKLCHoklch(85.99% 0.079 100.6)
XYZxyz(58.3959, 64.0399, 38.5569)
Luminance0.6404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD397 #97A0DC
analogous
#DCB097 #DCD397 #C2DC97
triadic
#DCD397 #97DCD3 #D397DC
tetradic
#DCD397 #97DCB0 #97A0DC #DC97C2
square
#DCD397 #97DCB0 #97A0DC #DC97C2
split-complementary
#DCD397 #97C2DC #B097DC
monochromatic
#BAAA3F #CDC069 #DCD397 #EBE6C5 #F7F5E8

Accessibility & contrast

On white

1.52
#DCD397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.81
#DCD397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD397
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD397#FFFFFF#000000##000000
##DCD3971.001.5213.8113.81
#FFFFFF1.521.0021.0021.00
#00000013.8121.001.001.00
##00000013.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DECF93
Deuteranopia (green-blind)
#E1D399
Tritanopia (blue-blind)
#E6CBC3
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #dcd397;
/* rgb */ color: rgb(220, 211, 151);
/* oklch */ color: oklch(86.0% 0.079 100.6);
Tailwind
colors: {
  custom: {
    50: '#e7e0b6',
    500: '#dcd397',
    950: '#000000',
  },
}
SCSS
$custom: #dcd397;
$custom-light: #e7e0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd397",
  "rgb": {
    "r": 220,
    "g": 211,
    "b": 151
  },
  "hsl": {
    "h": 52.174,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.85989,
    "c": 0.0785,
    "h": 100.6
  },
  "luminance": 0.64039
}

Semantic roles & 50–950 ramp

primary
#DCD397
secondary
#646EB4
accent
#3CBD29
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DCD397

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

Preview Lab → · Contrast checker → · Palette generator →

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