#CACA31#CACA31

#CACA31 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.4% C 0.163 H 109.5°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#CACA31
RGBrgb(202, 202, 49)
HSLhsl(60, 61%, 49%)
HSVhsv(60, 76%, 79%)
CMYKcmyk(0%, 0%, 75.7%, 20.8%)
CIE-LABlab(79.05, -17.05, 70.45)
CIE-LCHlch(79.05, 72.49, 103.61°)
OKLaboklab(81.36% -0.0546 0.154)
OKLCHoklch(81.36% 0.163 109.5)
XYZxyz(46.0338, 55.0208, 11.1003)
Luminance0.5502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACA31 #3131CA
analogous
#CA7E31 #CACA31 #7ECA31
triadic
#CACA31 #31CACA #CA31CA
tetradic
#CACA31 #31CA7E #3131CA #CA317E
square
#CACA31 #31CA7E #3131CA #CA317E
split-complementary
#CACA31 #317ECA #7E31CA
monochromatic
#676719 #999925 #CACA31 #D8D860 #E4E491

Accessibility & contrast

On white

1.75
#CACA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#CACA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACA31
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACA31#FFFFFF#000000##000000
##CACA311.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC105
Deuteranopia (green-blind)
#DCC63E
Tritanopia (blue-blind)
#D9BDAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #caca31;
/* rgb */ color: rgb(202, 202, 49);
/* oklch */ color: oklch(81.4% 0.163 109.5);
Tailwind
colors: {
  custom: {
    50: '#ded976',
    500: '#caca31',
    950: '#000000',
  },
}
SCSS
$custom: #caca31;
$custom-light: #ded976;
$custom-dark: #000000;
JSON
{
  "hex": "#caca31",
  "rgb": {
    "r": 202,
    "g": 202,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.81358,
    "c": 0.16338,
    "h": 109.5
  },
  "luminance": 0.55019
}

Semantic roles & 50–950 ramp

primary
#CACA31
secondary
#2E2E72
accent
#44E444
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CACA31

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

Preview Lab → · Contrast checker → · Palette generator →

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