#CACF31#CACF31

#CACF31 is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.4% C 0.168 H 111.5°. Best body text is #000000 at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#CACF31
RGBrgb(202, 207, 49)
HSLhsl(62, 62%, 50%)
HSVhsv(62, 76%, 81%)
CMYKcmyk(2.4%, 0%, 76.3%, 18.8%)
CIE-LABlab(80.41, -19.53, 71.69)
CIE-LCHlch(80.41, 74.30, 105.24°)
OKLaboklab(82.44% -0.0615 0.1566)
OKLCHoklch(82.44% 0.168 111.5)
XYZxyz(47.2260, 57.4052, 11.4977)
Luminance0.5740 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACF31 #3631CF
analogous
#CF8531 #CACF31 #7BCF31
triadic
#CACF31 #31CACF #CF31CA
tetradic
#CACF31 #31CF85 #3631CF #CF317B
square
#CACF31 #31CF85 #3631CF #CF317B
split-complementary
#CACF31 #317BCF #8531CF
monochromatic
#6A6C19 #9A9E25 #CACF31 #D7DB63 #E4E694

Accessibility & contrast

On white

1.68
#CACF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.48
#CACF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACF31
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACF31#FFFFFF#000000##000000
##CACF311.001.6812.4812.48
#FFFFFF1.681.0021.0021.00
#00000012.4821.001.001.00
##00000012.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC500
Deuteranopia (green-blind)
#E0C93F
Tritanopia (blue-blind)
#D8C2B2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cacf31;
/* rgb */ color: rgb(202, 207, 49);
/* oklch */ color: oklch(82.4% 0.168 111.5);
Tailwind
colors: {
  custom: {
    50: '#dedd76',
    500: '#cacf31',
    950: '#000000',
  },
}
SCSS
$custom: #cacf31;
$custom-light: #dedd76;
$custom-dark: #000000;
JSON
{
  "hex": "#cacf31",
  "rgb": {
    "r": 202,
    "g": 207,
    "b": 49
  },
  "hsl": {
    "h": 61.899,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.8244,
    "c": 0.16824,
    "h": 111.5
  },
  "luminance": 0.57404
}

Semantic roles & 50–950 ramp

primary
#CACF31
secondary
#312E76
accent
#43E548
background
#FEFEFB
surface
#FCFCF1
border
#D5D5CB
text
#161509
muted
#84847D

Preview Lab

Preview with #CACF31

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

Preview Lab → · Contrast checker → · Palette generator →

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