#DCD371#DCD371

#DCD371 is a very light, vivid yellow. Relative luminance 0.630; OKLCH L 85.4% C 0.121 H 104.0°. Best body text is #000000 at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#DCD371
RGBrgb(220, 211, 113)
HSLhsl(55, 60%, 65%)
HSVhsv(55, 49%, 86%)
CMYKcmyk(0%, 4.1%, 48.6%, 13.7%)
CIE-LABlab(83.44, -9.98, 49.24)
CIE-LCHlch(83.44, 50.24, 101.46°)
OKLaboklab(85.38% -0.0291 0.1171)
OKLCHoklch(85.38% 0.121 104)
XYZxyz(55.7915, 62.9981, 24.8405)
Luminance0.6300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD371 #717ADC
analogous
#DC9D71 #DCD371 #B0DC71
triadic
#DCD371 #71DCD3 #D371DC
tetradic
#DCD371 #71DC9D #717ADC #DC71B0
square
#DCD371 #71DC9D #717ADC #DC71B0
split-complementary
#DCD371 #71B0DC #9D71DC
monochromatic
#A99E2A #D0C440 #DCD371 #E8E2A2 #F4F1D3

Accessibility & contrast

On white

1.54
#DCD371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.60
#DCD371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD371
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD371#FFFFFF#000000##000000
##DCD3711.001.5413.6013.60
#FFFFFF1.541.0021.0021.00
#00000013.6021.001.001.00
##00000013.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CD68
Deuteranopia (green-blind)
#E5D275
Tritanopia (blue-blind)
#EAC8BC
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #dcd371;
/* rgb */ color: rgb(220, 211, 113);
/* oklch */ color: oklch(85.4% 0.121 104.0);
Tailwind
colors: {
  custom: {
    50: '#e9e09c',
    500: '#dcd371',
    950: '#000000',
  },
}
SCSS
$custom: #dcd371;
$custom-light: #e9e09c;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd371",
  "rgb": {
    "r": 220,
    "g": 211,
    "b": 113
  },
  "hsl": {
    "h": 54.953,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.85379,
    "c": 0.12061,
    "h": 104
  },
  "luminance": 0.62996
}

Semantic roles & 50–950 ramp

primary
#DCD371
secondary
#464EAC
accent
#2CC81D
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150E
muted
#85847F

Preview Lab

Preview with #DCD371

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

Preview Lab → · Contrast checker → · Palette generator →

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