#CACC34#CACC34

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

Color values

HEX#CACC34
RGBrgb(202, 204, 52)
HSLhsl(61, 60%, 50%)
HSVhsv(61, 75%, 80%)
CMYKcmyk(1%, 0%, 74.5%, 20%)
CIE-LABlab(79.61, -17.93, 70.02)
CIE-LCHlch(79.61, 72.28, 104.36°)
OKLaboklab(81.81% -0.0568 0.1536)
OKLCHoklch(81.81% 0.164 110.3)
XYZxyz(46.5715, 55.9916, 11.6024)
Luminance0.5599 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC34 #3634CC
analogous
#CC8234 #CACC34 #7ECC34
triadic
#CACC34 #34CACC #CC34CA
tetradic
#CACC34 #34CC82 #3634CC #CC347E
square
#CACC34 #34CC82 #3634CC #CC347E
split-complementary
#CACC34 #347ECC #8234CC
monochromatic
#6A6B1B #9A9C27 #CACC34 #D7D865 #E4E596

Accessibility & contrast

On white

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

On black

12.20
#CACC34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC34
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC34#FFFFFF#000000##000000
##CACC341.001.7212.2012.20
#FFFFFF1.721.0021.0021.00
#00000012.2021.001.001.00
##00000012.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC30F
Deuteranopia (green-blind)
#DEC741
Tritanopia (blue-blind)
#D8BFAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cacc34;
/* rgb */ color: rgb(202, 204, 52);
/* oklch */ color: oklch(81.8% 0.164 110.3);
Tailwind
colors: {
  custom: {
    50: '#dedb77',
    500: '#cacc34',
    950: '#000000',
  },
}
SCSS
$custom: #cacc34;
$custom-light: #dedb77;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc34",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 52
  },
  "hsl": {
    "h": 60.789,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.81807,
    "c": 0.16377,
    "h": 110.3
  },
  "luminance": 0.5599
}

Semantic roles & 50–950 ramp

primary
#CACC34
secondary
#313074
accent
#45E347
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#16140A
muted
#84837D

Preview Lab

Preview with #CACC34

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

Preview Lab → · Contrast checker → · Palette generator →

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