#D2CC72#D2CC72

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

Color values

HEX#D2CC72
RGBrgb(210, 204, 114)
HSLhsl(56, 52%, 64%)
HSVhsv(56, 46%, 82%)
CMYKcmyk(0%, 2.9%, 45.7%, 17.6%)
CIE-LABlab(80.80, -10.37, 45.35)
CIE-LCHlch(80.80, 46.52, 102.88°)
OKLaboklab(83.08% -0.0296 0.1087)
OKLCHoklch(83.08% 0.113 105.2)
XYZxyz(51.2096, 58.1037, 24.4339)
Luminance0.5810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC72 #7278D2
analogous
#D29C72 #D2CC72 #A8D272
triadic
#D2CC72 #72D2CC #CC72D2
tetradic
#D2CC72 #72D29C #7278D2 #D272A8
square
#D2CC72 #72D29C #7278D2 #D272A8
split-complementary
#D2CC72 #72A8D2 #9C72D2
monochromatic
#999231 #C3BB44 #D2CC72 #E1DDA0 #F0EECF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2CC72#FFFFFF#000000##000000
##D2CC721.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)
#DAC66A
Deuteranopia (green-blind)
#DCCB76
Tritanopia (blue-blind)
#DEC1B7
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d2cc72;
/* rgb */ color: rgb(210, 204, 114);
/* oklch */ color: oklch(83.1% 0.113 105.2);
Tailwind
colors: {
  custom: {
    50: '#e1db9c',
    500: '#d2cc72',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc72;
$custom-light: #e1db9c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc72",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 114
  },
  "hsl": {
    "h": 56.25,
    "s": 51.613,
    "l": 63.529
  },
  "oklch": {
    "l": 0.83084,
    "c": 0.11262,
    "h": 105.2
  },
  "luminance": 0.58102
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2CC72

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

Preview Lab → · Contrast checker → · Palette generator →

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