#D2CC71#D2CC71

#D2CC71 is a very light, moderate yellow. Relative luminance 0.581; OKLCH L 83.1% C 0.114 H 105.3°. Best body text is #000000 at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#D2CC71
RGBrgb(210, 204, 113)
HSLhsl(56, 52%, 63%)
HSVhsv(56, 46%, 82%)
CMYKcmyk(0%, 2.9%, 46.2%, 17.6%)
CIE-LABlab(80.78, -10.47, 45.83)
CIE-LCHlch(80.78, 47.01, 102.86°)
OKLaboklab(83.07% -0.0299 0.1097)
OKLCHoklch(83.07% 0.114 105.3)
XYZxyz(51.1530, 58.0810, 24.1357)
Luminance0.5808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC71 #7177D2
analogous
#D29B71 #D2CC71 #A7D271
triadic
#D2CC71 #71D2CC #CC71D2
tetradic
#D2CC71 #71D29B #7177D2 #D271A7
square
#D2CC71 #71D29B #7177D2 #D271A7
split-complementary
#D2CC71 #71A7D2 #9B71D2
monochromatic
#989230 #C3BB43 #D2CC71 #E1DD9F #EFEDCE

Accessibility & contrast

On white

1.66
#D2CC71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.62
#D2CC71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC71
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC71#FFFFFF#000000##000000
##D2CC711.001.6612.6212.62
#FFFFFF1.661.0021.0021.00
#00000012.6221.001.001.00
##00000012.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC669
Deuteranopia (green-blind)
#DCCB75
Tritanopia (blue-blind)
#DEC1B7
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cc71;
/* rgb */ color: rgb(210, 204, 113);
/* oklch */ color: oklch(83.1% 0.114 105.3);
Tailwind
colors: {
  custom: {
    50: '#e1db9b',
    500: '#d2cc71',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc71;
$custom-light: #e1db9b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc71",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 113
  },
  "hsl": {
    "h": 56.289,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.8307,
    "c": 0.11366,
    "h": 105.3
  },
  "luminance": 0.5808
}

Semantic roles & 50–950 ramp

primary
#D2CC71
secondary
#4A4F9E
accent
#30BF26
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D2CC71

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

Preview Lab → · Contrast checker → · Palette generator →

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