#CACC40#CACC40

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

Color values

HEX#CACC40
RGBrgb(202, 204, 64)
HSLhsl(61, 58%, 53%)
HSVhsv(61, 69%, 80%)
CMYKcmyk(1%, 0%, 68.6%, 20%)
CIE-LABlab(79.68, -17.36, 65.95)
CIE-LCHlch(79.68, 68.20, 104.75°)
OKLaboklab(81.88% -0.0542 0.1471)
OKLCHoklch(81.88% 0.157 110.2)
XYZxyz(46.8770, 56.1137, 13.2112)
Luminance0.5611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC40 #4240CC
analogous
#CC8840 #CACC40 #84CC40
triadic
#CACC40 #40CACC #CC40CA
tetradic
#CACC40 #40CC88 #4240CC #CC4084
square
#CACC40 #40CC88 #4240CC #CC4084
split-complementary
#CACC40 #4084CC #8840CC
monochromatic
#72731F #A2A32C #CACC40 #D7D970 #E5E6A1

Accessibility & contrast

On white

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

On black

12.22
#CACC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC40
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC40#FFFFFF#000000##000000
##CACC401.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cacc40;
/* rgb */ color: rgb(202, 204, 64);
/* oklch */ color: oklch(81.9% 0.157 110.2);
Tailwind
colors: {
  custom: {
    50: '#dedb7d',
    500: '#cacc40',
    950: '#000000',
  },
}
SCSS
$custom: #cacc40;
$custom-light: #dedb7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc40",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 60.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.81884,
    "c": 0.15672,
    "h": 110.2
  },
  "luminance": 0.56112
}

Semantic roles & 50–950 ramp

primary
#CACC40
secondary
#35347C
accent
#47E149
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CACC40

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

Preview Lab → · Contrast checker → · Palette generator →

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