#DCD271#DCD271

#DCD271 is a very light, moderate yellow. Relative luminance 0.625; OKLCH L 85.2% C 0.120 H 103.4°. Best body text is #000000 at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#DCD271
RGBrgb(220, 210, 113)
HSLhsl(54, 60%, 65%)
HSVhsv(54, 49%, 86%)
CMYKcmyk(0%, 4.5%, 48.6%, 13.7%)
CIE-LABlab(83.18, -9.47, 48.93)
CIE-LCHlch(83.18, 49.84, 100.96°)
OKLaboklab(85.17% -0.0276 0.1164)
OKLCHoklch(85.17% 0.12 103.4)
XYZxyz(55.5439, 62.5028, 24.7580)
Luminance0.6250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD271 #717BDC
analogous
#DC9D71 #DCD271 #B0DC71
triadic
#DCD271 #71DCD2 #D271DC
tetradic
#DCD271 #71DC9D #717BDC #DC71B0
square
#DCD271 #71DC9D #717BDC #DC71B0
split-complementary
#DCD271 #71B0DC #9D71DC
monochromatic
#A99D2A #D0C240 #DCD271 #E8E2A2 #F4F1D3

Accessibility & contrast

On white

1.56
#DCD271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.50
#DCD271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD271
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD271#FFFFFF#000000##000000
##DCD2711.001.5613.5013.50
#FFFFFF1.561.0021.0021.00
#00000013.5021.001.001.00
##00000013.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CC69
Deuteranopia (green-blind)
#E5D275
Tritanopia (blue-blind)
#EAC7BB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #dcd271;
/* rgb */ color: rgb(220, 210, 113);
/* oklch */ color: oklch(85.2% 0.120 103.4);
Tailwind
colors: {
  custom: {
    50: '#e9df9c',
    500: '#dcd271',
    950: '#000000',
  },
}
SCSS
$custom: #dcd271;
$custom-light: #e9df9c;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd271",
  "rgb": {
    "r": 220,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 54.393,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.85172,
    "c": 0.1196,
    "h": 103.4
  },
  "luminance": 0.62501
}

Semantic roles & 50–950 ramp

primary
#DCD271
secondary
#464FAC
accent
#2DC81D
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150E
muted
#85847F

Preview Lab

Preview with #DCD271

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

Preview Lab → · Contrast checker → · Palette generator →

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