#CAAC31#CAAC31

#CAAC31 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 75.0% C 0.139 H 94.7°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#CAAC31
RGBrgb(202, 172, 49)
HSLhsl(48, 61%, 49%)
HSVhsv(48, 76%, 79%)
CMYKcmyk(0%, 14.9%, 75.7%, 20.8%)
CIE-LABlab(71.07, -1.64, 63.07)
CIE-LCHlch(71.07, 63.09, 91.49°)
OKLaboklab(75.01% -0.0113 0.1382)
OKLCHoklch(75.01% 0.139 94.7)
XYZxyz(39.6662, 42.2856, 8.9778)
Luminance0.4228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAAC31 #314FCA
analogous
#CA5F31 #CAAC31 #9CCA31
triadic
#CAAC31 #31CAAC #AC31CA
tetradic
#CAAC31 #31CA5F #314FCA #CA319C
square
#CAAC31 #31CA5F #314FCA #CA319C
split-complementary
#CAAC31 #319CCA #5F31CA
monochromatic
#675819 #998225 #CAAC31 #D8C160 #E4D491

Accessibility & contrast

On white

2.22
#CAAC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#CAAC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAAC31
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAAC31#FFFFFF#000000##000000
##CAAC311.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA91A
Deuteranopia (green-blind)
#C6B239
Tritanopia (blue-blind)
#DA9E94
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #caac31;
/* rgb */ color: rgb(202, 172, 49);
/* oklch */ color: oklch(75.0% 0.139 94.7);
Tailwind
colors: {
  custom: {
    50: '#dec472',
    500: '#caac31',
    950: '#000000',
  },
}
SCSS
$custom: #caac31;
$custom-light: #dec472;
$custom-dark: #000000;
JSON
{
  "hex": "#caac31",
  "rgb": {
    "r": 202,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 48.235,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.75009,
    "c": 0.13869,
    "h": 94.7
  },
  "luminance": 0.42283
}

Semantic roles & 50–950 ramp

primary
#CAAC31
secondary
#8896CF
accent
#63E444
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161208
muted
#84817B

Preview Lab

Preview with #CAAC31

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

Preview Lab → · Contrast checker → · Palette generator →

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