#DCC271#DCC271

#DCC271 is a light, moderate yellow. Relative luminance 0.550; OKLCH L 81.9% C 0.105 H 92.1°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#DCC271
RGBrgb(220, 194, 113)
HSLhsl(45, 60%, 65%)
HSVhsv(45, 49%, 86%)
CMYKcmyk(0%, 11.8%, 48.6%, 13.7%)
CIE-LABlab(79.04, -1.26, 43.88)
CIE-LCHlch(79.04, 43.90, 91.64°)
OKLaboklab(81.89% -0.0039 0.1052)
OKLCHoklch(81.89% 0.105 92.1)
XYZxyz(51.7893, 54.9937, 23.5065)
Luminance0.5499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCC271 #718BDC
analogous
#DC8D71 #DCC271 #C0DC71
triadic
#DCC271 #71DCC2 #C271DC
tetradic
#DCC271 #71DC8D #718BDC #DC71C0
square
#DCC271 #71DC8D #718BDC #DC71C0
split-complementary
#DCC271 #71C0DC #8D71DC
monochromatic
#A98A2A #D0AD40 #DCC271 #E8D7A2 #F4ECD3

Accessibility & contrast

On white

1.75
#DCC271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#DCC271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCC271
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCC271#FFFFFF#000000##000000
##DCC2711.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BF6A
Deuteranopia (green-blind)
#D8C774
Tritanopia (blue-blind)
#EBB6AF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #dcc271;
/* rgb */ color: rgb(220, 194, 113);
/* oklch */ color: oklch(81.9% 0.105 92.1);
Tailwind
colors: {
  custom: {
    50: '#e9d49b',
    500: '#dcc271',
    950: '#000000',
  },
}
SCSS
$custom: #dcc271;
$custom-light: #e9d49b;
$custom-dark: #000000;
JSON
{
  "hex": "#dcc271",
  "rgb": {
    "r": 220,
    "g": 194,
    "b": 113
  },
  "hsl": {
    "h": 45.421,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.81892,
    "c": 0.10526,
    "h": 92.1
  },
  "luminance": 0.54991
}

Semantic roles & 50–950 ramp

primary
#DCC271
secondary
#465EAC
accent
#47C81D
background
#FFFEFC
surface
#FEFBF5
border
#D6D4CF
text
#16140E
muted
#85837F

Preview Lab

Preview with #DCC271

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

Preview Lab → · Contrast checker → · Palette generator →

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