#CACF42#CACF42

#CACF42 is a very light, vivid yellow. Relative luminance 0.576; OKLCH L 82.5% C 0.158 H 111.4°. Best body text is #000000 at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#CACF42
RGBrgb(202, 207, 66)
HSLhsl(62, 59%, 54%)
HSVhsv(62, 68%, 81%)
CMYKcmyk(2.4%, 0%, 68.1%, 18.8%)
CIE-LABlab(80.50, -18.75, 66.03)
CIE-LCHlch(80.50, 68.64, 105.85°)
OKLaboklab(82.55% -0.0578 0.1475)
OKLCHoklch(82.55% 0.158 111.4)
XYZxyz(47.6548, 57.5767, 13.7563)
Luminance0.5758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACF42 #4742CF
analogous
#CF8D42 #CACF42 #83CF42
triadic
#CACF42 #42CACF #CF42CA
tetradic
#CACF42 #42CF8D #4742CF #CF4283
square
#CACF42 #42CF8D #4742CF #CF4283
split-complementary
#CACF42 #4283CF #8D42CF
monochromatic
#75781F #A4A92B #CACF42 #D8DB73 #E5E8A4

Accessibility & contrast

On white

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

On black

12.52
#CACF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACF42
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACF42#FFFFFF#000000##000000
##CACF421.001.6812.5212.52
#FFFFFF1.681.0021.0021.00
#00000012.5221.001.001.00
##00000012.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC62C
Deuteranopia (green-blind)
#DFCA4C
Tritanopia (blue-blind)
#D8C2B3
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cacf42;
/* rgb */ color: rgb(202, 207, 66);
/* oklch */ color: oklch(82.5% 0.158 111.4);
Tailwind
colors: {
  custom: {
    50: '#dddd7f',
    500: '#cacf42',
    950: '#000000',
  },
}
SCSS
$custom: #cacf42;
$custom-light: #dddd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#cacf42",
  "rgb": {
    "r": 202,
    "g": 207,
    "b": 66
  },
  "hsl": {
    "h": 62.128,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.82548,
    "c": 0.15848,
    "h": 111.4
  },
  "luminance": 0.57576
}

Semantic roles & 50–950 ramp

primary
#CACF42
secondary
#383580
accent
#45E34B
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CACF42

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

Preview Lab → · Contrast checker → · Palette generator →

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