#CCCC52#CCCC52

#CCCC52 is a very light, vivid yellow. Relative luminance 0.566; OKLCH L 82.2% C 0.143 H 109.2°. Best body text is #000000 at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#CCCC52
RGBrgb(204, 204, 82)
HSLhsl(60, 54%, 56%)
HSVhsv(60, 60%, 80%)
CMYKcmyk(0%, 0%, 59.8%, 20%)
CIE-LABlab(79.97, -15.45, 59.10)
CIE-LCHlch(79.97, 61.08, 104.65°)
OKLaboklab(82.2% -0.047 0.1353)
OKLCHoklch(82.2% 0.143 109.2)
XYZxyz(48.0191, 56.6336, 16.3829)
Luminance0.5663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC52 #5252CC
analogous
#CC8F52 #CCCC52 #8FCC52
triadic
#CCCC52 #52CCCC #CC52CC
tetradic
#CCCC52 #52CC8F #5252CC #CC528F
square
#CCCC52 #52CC8F #5252CC #CC528F
split-complementary
#CCCC52 #528FCC #8F52CC
monochromatic
#7E7E25 #AEAE33 #CCCC52 #DADA81 #E8E8B1

Accessibility & contrast

On white

1.70
#CCCC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.33
#CCCC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC52
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC52#FFFFFF#000000##000000
##CCCC521.001.7012.3312.33
#FFFFFF1.701.0021.0021.00
#00000012.3321.001.001.00
##00000012.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC444
Deuteranopia (green-blind)
#DDC859
Tritanopia (blue-blind)
#D9C0B2
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cccc52;
/* rgb */ color: rgb(204, 204, 82);
/* oklch */ color: oklch(82.2% 0.143 109.2);
Tailwind
colors: {
  custom: {
    50: '#dedb88',
    500: '#cccc52',
    950: '#000000',
  },
}
SCSS
$custom: #cccc52;
$custom-light: #dedb88;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc52",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.82202,
    "c": 0.14321,
    "h": 109.2
  },
  "luminance": 0.56632
}

Semantic roles & 50–950 ramp

primary
#CCCC52
secondary
#3C3C86
accent
#4ADE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CCCC52

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

Preview Lab → · Contrast checker → · Palette generator →

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