#CCC052#CCC052

#CCC052 is a light, vivid yellow. Relative luminance 0.511; OKLCH L 79.7% C 0.131 H 103.1°. Best body text is #000000 at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#CCC052
RGBrgb(204, 192, 82)
HSLhsl(54, 54%, 56%)
HSVhsv(54, 60%, 80%)
CMYKcmyk(0%, 5.9%, 59.8%, 20%)
CIE-LABlab(76.77, -9.37, 55.59)
CIE-LCHlch(76.77, 56.37, 99.57°)
OKLaboklab(79.65% -0.0298 0.1278)
OKLCHoklch(79.65% 0.131 103.1)
XYZxyz(45.2761, 51.1475, 15.4685)
Luminance0.5115 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC052 #525ECC
analogous
#CC8352 #CCC052 #9BCC52
triadic
#CCC052 #52CCC0 #C052CC
tetradic
#CCC052 #52CC83 #525ECC #CC529B
square
#CCC052 #52CC83 #525ECC #CC529B
split-complementary
#CCC052 #529BCC #8352CC
monochromatic
#7E7625 #AEA233 #CCC052 #DAD181 #E8E2B1

Accessibility & contrast

On white

1.87
#CCC052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.23
#CCC052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC052
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC052#FFFFFF#000000##000000
##CCC0521.001.8711.2311.23
#FFFFFF1.871.0021.0021.00
#00000011.2321.001.001.00
##00000011.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA46
Deuteranopia (green-blind)
#D4C058
Tritanopia (blue-blind)
#DAB4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc052;
/* rgb */ color: rgb(204, 192, 82);
/* oklch */ color: oklch(79.7% 0.131 103.1);
Tailwind
colors: {
  custom: {
    50: '#ded287',
    500: '#ccc052',
    950: '#000000',
  },
}
SCSS
$custom: #ccc052;
$custom-light: #ded287;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc052",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 54.098,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.7965,
    "c": 0.13122,
    "h": 103.1
  },
  "luminance": 0.51146
}

Semantic roles & 50–950 ramp

primary
#CCC052
secondary
#3C4386
accent
#59DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CCC052

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

Preview Lab → · Contrast checker → · Palette generator →

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