#CACC3E#CACC3E

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

Color values

HEX#CACC3E
RGBrgb(202, 204, 62)
HSLhsl(61, 58%, 52%)
HSVhsv(61, 70%, 80%)
CMYKcmyk(1%, 0%, 69.6%, 20%)
CIE-LABlab(79.67, -17.47, 66.67)
CIE-LCHlch(79.67, 68.92, 104.68°)
OKLaboklab(81.87% -0.0546 0.1482)
OKLCHoklch(81.87% 0.158 110.2)
XYZxyz(46.8211, 56.0914, 12.9168)
Luminance0.5609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC3E #403ECC
analogous
#CC873E #CACC3E #83CC3E
triadic
#CACC3E #3ECACC #CC3ECA
tetradic
#CACC3E #3ECC87 #403ECC #CC3E83
square
#CACC3E #3ECC87 #403ECC #CC3E83
split-complementary
#CACC3E #3E83CC #873ECC
monochromatic
#70721E #A0A22B #CACC3E #D7D96E #E5E69F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CACC3E#FFFFFF#000000##000000
##CACC3E1.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)
#DCC326
Deuteranopia (green-blind)
#DDC748
Tritanopia (blue-blind)
#D8BFB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cacc3e;
/* rgb */ color: rgb(202, 204, 62);
/* oklch */ color: oklch(81.9% 0.158 110.2);
Tailwind
colors: {
  custom: {
    50: '#dedb7c',
    500: '#cacc3e',
    950: '#000000',
  },
}
SCSS
$custom: #cacc3e;
$custom-light: #dedb7c;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc3e",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 62
  },
  "hsl": {
    "h": 60.845,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.8187,
    "c": 0.15799,
    "h": 110.2
  },
  "luminance": 0.5609
}

Semantic roles & 50–950 ramp

primary
#CACC3E
secondary
#35347B
accent
#46E149
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CACC3E

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

Preview Lab → · Contrast checker → · Palette generator →

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