#CACC42#CACC42

#CACC42 is a light, vivid yellow. Relative luminance 0.561; OKLCH L 81.9% C 0.155 H 110.2°. Best body text is #000000 at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#CACC42
RGBrgb(202, 204, 66)
HSLhsl(61, 58%, 53%)
HSVhsv(61, 68%, 80%)
CMYKcmyk(1%, 0%, 67.6%, 20%)
CIE-LABlab(79.69, -17.26, 65.22)
CIE-LCHlch(79.69, 67.46, 104.82°)
OKLaboklab(81.9% -0.0537 0.1458)
OKLCHoklch(81.9% 0.155 110.2)
XYZxyz(46.9349, 56.1369, 13.5163)
Luminance0.5614 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC42 #4442CC
analogous
#CC8942 #CACC42 #85CC42
triadic
#CACC42 #42CACC #CC42CA
tetradic
#CACC42 #42CC89 #4442CC #CC4285
square
#CACC42 #42CC89 #4442CC #CC4285
split-complementary
#CACC42 #4285CC #8942CC
monochromatic
#73741F #A3A42C #CACC42 #D8D972 #E5E6A2

Accessibility & contrast

On white

1.72
#CACC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#CACC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC42
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC42#FFFFFF#000000##000000
##CACC421.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC32D
Deuteranopia (green-blind)
#DDC74C
Tritanopia (blue-blind)
#D8BFB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cacc42;
/* rgb */ color: rgb(202, 204, 66);
/* oklch */ color: oklch(81.9% 0.155 110.2);
Tailwind
colors: {
  custom: {
    50: '#dddb7e',
    500: '#cacc42',
    950: '#000000',
  },
}
SCSS
$custom: #cacc42;
$custom-light: #dddb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc42",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 60.87,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81899,
    "c": 0.1554,
    "h": 110.2
  },
  "luminance": 0.56136
}

Semantic roles & 50–950 ramp

primary
#CACC42
secondary
#36357D
accent
#47E149
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CACC42

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

Preview Lab → · Contrast checker → · Palette generator →

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