#CACC31#CACC31

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

Color values

HEX#CACC31
RGBrgb(202, 204, 49)
HSLhsl(61, 61%, 50%)
HSVhsv(61, 76%, 80%)
CMYKcmyk(1%, 0%, 76%, 20%)
CIE-LABlab(79.59, -18.05, 70.95)
CIE-LCHlch(79.59, 73.21, 104.27°)
OKLaboklab(81.79% -0.0574 0.155)
OKLCHoklch(81.79% 0.165 110.3)
XYZxyz(46.5061, 55.9654, 11.2577)
Luminance0.5596 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC31 #3331CC
analogous
#CC8031 #CACC31 #7DCC31
triadic
#CACC31 #31CACC #CC31CA
tetradic
#CACC31 #31CC80 #3331CC #CC317D
square
#CACC31 #31CC80 #3331CC #CC317D
split-complementary
#CACC31 #317DCC #8031CC
monochromatic
#686919 #999B25 #CACC31 #D8D961 #E4E592

Accessibility & contrast

On white

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

On black

12.19
#CACC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC31
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC31#FFFFFF#000000##000000
##CACC311.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cacc31;
/* rgb */ color: rgb(202, 204, 49);
/* oklch */ color: oklch(81.8% 0.165 110.3);
Tailwind
colors: {
  custom: {
    50: '#dedb76',
    500: '#cacc31',
    950: '#000000',
  },
}
SCSS
$custom: #cacc31;
$custom-light: #dedb76;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc31",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 49
  },
  "hsl": {
    "h": 60.774,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.8179,
    "c": 0.16531,
    "h": 110.3
  },
  "luminance": 0.55964
}

Semantic roles & 50–950 ramp

primary
#CACC31
secondary
#2F2E73
accent
#43E446
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CACC31

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

Preview Lab → · Contrast checker → · Palette generator →

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