#D4CC52#D4CC52

#D4CC52 is a very light, vivid yellow. Relative luminance 0.578; OKLCH L 82.9% C 0.142 H 105.5°. Best body text is #000000 at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#D4CC52
RGBrgb(212, 204, 82)
HSLhsl(56, 60%, 58%)
HSVhsv(56, 61%, 83%)
CMYKcmyk(0%, 3.8%, 61.3%, 16.9%)
CIE-LABlab(80.62, -12.13, 59.99)
CIE-LCHlch(80.62, 61.20, 101.43°)
OKLaboklab(82.88% -0.0381 0.137)
OKLCHoklch(82.88% 0.142 105.5)
XYZxyz(50.2690, 57.7937, 16.4883)
Luminance0.5779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CC52 #525AD4
analogous
#D48B52 #D4CC52 #9BD452
triadic
#D4CC52 #52D4CC #CC52D4
tetradic
#D4CC52 #52D48B #525AD4 #D4529B
square
#D4CC52 #52D48B #525AD4 #D4529B
split-complementary
#D4CC52 #529BD4 #8B52D4
monochromatic
#898322 #BAB22E #D4CC52 #E0DA83 #ECE9B4

Accessibility & contrast

On white

1.67
#D4CC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.56
#D4CC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CC52
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CC52#FFFFFF#000000##000000
##D4CC521.001.6712.5612.56
#FFFFFF1.671.0021.0021.00
#00000012.5621.001.001.00
##00000012.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4cc52;
/* rgb */ color: rgb(212, 204, 82);
/* oklch */ color: oklch(82.9% 0.142 105.5);
Tailwind
colors: {
  custom: {
    50: '#e4db88',
    500: '#d4cc52',
    950: '#000000',
  },
}
SCSS
$custom: #d4cc52;
$custom-light: #e4db88;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cc52",
  "rgb": {
    "r": 212,
    "g": 204,
    "b": 82
  },
  "hsl": {
    "h": 56.308,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.82878,
    "c": 0.14217,
    "h": 105.5
  },
  "luminance": 0.57792
}

Semantic roles & 50–950 ramp

primary
#D4CC52
secondary
#3B4090
accent
#4EE344
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4CC52

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

Preview Lab → · Contrast checker → · Palette generator →

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