#CACC52#CACC52

#CACC52 is a very light, vivid yellow. Relative luminance 0.564; OKLCH L 82.0% C 0.144 H 110.1°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#CACC52
RGBrgb(202, 204, 82)
HSLhsl(61, 54%, 56%)
HSVhsv(61, 60%, 80%)
CMYKcmyk(1%, 0%, 59.8%, 20%)
CIE-LABlab(79.81, -16.28, 58.88)
CIE-LCHlch(79.81, 61.09, 105.46°)
OKLaboklab(82.04% -0.0493 0.1348)
OKLCHoklch(82.04% 0.144 110.1)
XYZxyz(47.4743, 56.3527, 16.3573)
Luminance0.5635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC52 #5452CC
analogous
#CC9152 #CACC52 #8DCC52
triadic
#CACC52 #52CACC #CC52CA
tetradic
#CACC52 #52CC91 #5452CC #CC528D
square
#CACC52 #52CC91 #5452CC #CC528D
split-complementary
#CACC52 #528DCC #9152CC
monochromatic
#7D7E25 #ACAE33 #CACC52 #D8DA81 #E7E8B1

Accessibility & contrast

On white

1.71
#CACC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#CACC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC52
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC52#FFFFFF#000000##000000
##CACC521.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cacc52;
/* rgb */ color: rgb(202, 204, 82);
/* oklch */ color: oklch(82.0% 0.144 110.1);
Tailwind
colors: {
  custom: {
    50: '#dddb88',
    500: '#cacc52',
    950: '#000000',
  },
}
SCSS
$custom: #cacc52;
$custom-light: #dddb88;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc52",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 82
  },
  "hsl": {
    "h": 60.984,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.82036,
    "c": 0.14356,
    "h": 110.1
  },
  "luminance": 0.56351
}

Semantic roles & 50–950 ramp

primary
#CACC52
secondary
#3D3C86
accent
#4ADE4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CACC52

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

Preview Lab → · Contrast checker → · Palette generator →

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