#CACC3A#CACC3A

#CACC3A is a light, vivid yellow. Relative luminance 0.560; OKLCH L 81.8% C 0.160 H 110.3°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#CACC3A
RGBrgb(202, 204, 58)
HSLhsl(61, 59%, 51%)
HSVhsv(61, 72%, 80%)
CMYKcmyk(1%, 0%, 71.6%, 20%)
CIE-LABlab(79.64, -17.66, 68.06)
CIE-LCHlch(79.64, 70.32, 104.55°)
OKLaboklab(81.84% -0.0556 0.1505)
OKLCHoklch(81.84% 0.16 110.3)
XYZxyz(46.7153, 56.0491, 12.3599)
Luminance0.5605 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC3A #3C3ACC
analogous
#CC853A #CACC3A #81CC3A
triadic
#CACC3A #3ACACC #CC3ACA
tetradic
#CACC3A #3ACC85 #3C3ACC #CC3A81
square
#CACC3A #3ACC85 #3C3ACC #CC3A81
split-complementary
#CACC3A #3A81CC #853ACC
monochromatic
#6E6F1D #9EA029 #CACC3A #D7D96B #E4E59B

Accessibility & contrast

On white

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

On black

12.21
#CACC3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC3A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC3A#FFFFFF#000000##000000
##CACC3A1.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cacc3a;
/* rgb */ color: rgb(202, 204, 58);
/* oklch */ color: oklch(81.8% 0.160 110.3);
Tailwind
colors: {
  custom: {
    50: '#dedb7a',
    500: '#cacc3a',
    950: '#000000',
  },
}
SCSS
$custom: #cacc3a;
$custom-light: #dedb7a;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc3a",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 58
  },
  "hsl": {
    "h": 60.822,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.81843,
    "c": 0.16042,
    "h": 110.3
  },
  "luminance": 0.56048
}

Semantic roles & 50–950 ramp

primary
#CACC3A
secondary
#333278
accent
#46E248
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CACC3A

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

Preview Lab → · Contrast checker → · Palette generator →

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