#D2CC52#D2CC52

#D2CC52 is a very light, vivid yellow. Relative luminance 0.575; OKLCH L 82.7% C 0.142 H 106.5°. Best body text is #000000 at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#D2CC52
RGBrgb(210, 204, 82)
HSLhsl(57, 59%, 57%)
HSVhsv(57, 61%, 82%)
CMYKcmyk(0%, 2.9%, 61%, 17.6%)
CIE-LABlab(80.46, -12.96, 59.76)
CIE-LCHlch(80.46, 61.15, 102.24°)
OKLaboklab(82.71% -0.0403 0.1365)
OKLCHoklch(82.71% 0.142 106.5)
XYZxyz(49.6959, 57.4982, 16.4615)
Luminance0.5750 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC52 #5258D2
analogous
#D28C52 #D2CC52 #98D252
triadic
#D2CC52 #52D2CC #CC52D2
tetradic
#D2CC52 #52D28C #5258D2 #D25298
square
#D2CC52 #52D28C #5258D2 #D25298
split-complementary
#D2CC52 #5298D2 #8C52D2
monochromatic
#878223 #B7B130 #D2CC52 #DFDA83 #EBE9B3

Accessibility & contrast

On white

1.68
#D2CC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.50
#D2CC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC52
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC52#FFFFFF#000000##000000
##D2CC521.001.6812.5012.50
#FFFFFF1.681.0021.0021.00
#00000012.5021.001.001.00
##00000012.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC544
Deuteranopia (green-blind)
#DFCA59
Tritanopia (blue-blind)
#E0BFB2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cc52;
/* rgb */ color: rgb(210, 204, 82);
/* oklch */ color: oklch(82.7% 0.142 106.5);
Tailwind
colors: {
  custom: {
    50: '#e3db88',
    500: '#d2cc52',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc52;
$custom-light: #e3db88;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc52",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 82
  },
  "hsl": {
    "h": 57.188,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.82707,
    "c": 0.14237,
    "h": 106.5
  },
  "luminance": 0.57497
}

Semantic roles & 50–950 ramp

primary
#D2CC52
secondary
#3B3F8D
accent
#4DE246
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2CC52

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

Preview Lab → · Contrast checker → · Palette generator →

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