#CCCA52#CCCA52

#CCCA52 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.8% C 0.141 H 108.3°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#CCCA52
RGBrgb(204, 202, 82)
HSLhsl(59, 54%, 56%)
HSVhsv(59, 60%, 80%)
CMYKcmyk(0%, 1%, 59.8%, 20%)
CIE-LABlab(79.44, -14.45, 58.51)
CIE-LCHlch(79.44, 60.27, 103.87°)
OKLaboklab(81.77% -0.0442 0.134)
OKLCHoklch(81.77% 0.141 108.3)
XYZxyz(47.5468, 55.6890, 16.2254)
Luminance0.5569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCA52 #5254CC
analogous
#CC8D52 #CCCA52 #91CC52
triadic
#CCCA52 #52CCCA #CA52CC
tetradic
#CCCA52 #52CC8D #5254CC #CC5291
square
#CCCA52 #52CC8D #5254CC #CC5291
split-complementary
#CCCA52 #5291CC #8D52CC
monochromatic
#7E7D25 #AEAC33 #CCCA52 #DAD881 #E8E7B1

Accessibility & contrast

On white

1.73
#CCCA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#CCCA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCA52
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCA52#FFFFFF#000000##000000
##CCCA521.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C244
Deuteranopia (green-blind)
#DBC759
Tritanopia (blue-blind)
#DABEB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #ccca52;
/* rgb */ color: rgb(204, 202, 82);
/* oklch */ color: oklch(81.8% 0.141 108.3);
Tailwind
colors: {
  custom: {
    50: '#ded987',
    500: '#ccca52',
    950: '#000000',
  },
}
SCSS
$custom: #ccca52;
$custom-light: #ded987;
$custom-dark: #000000;
JSON
{
  "hex": "#ccca52",
  "rgb": {
    "r": 204,
    "g": 202,
    "b": 82
  },
  "hsl": {
    "h": 59.016,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81774,
    "c": 0.14112,
    "h": 108.3
  },
  "luminance": 0.55688
}

Semantic roles & 50–950 ramp

primary
#CCCA52
secondary
#3C3D86
accent
#4CDE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CCCA52

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

Preview Lab → · Contrast checker → · Palette generator →

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