#CAC42A#CAC42A

#CAC42A is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.0% C 0.161 H 107.2°. Best body text is #000000 at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#CAC42A
RGBrgb(202, 196, 42)
HSLhsl(58, 66%, 48%)
HSVhsv(58, 79%, 79%)
CMYKcmyk(0%, 3%, 79.2%, 20.8%)
CIE-LABlab(77.40, -14.30, 71.04)
CIE-LCHlch(77.40, 72.47, 101.38°)
OKLaboklab(80.03% -0.0475 0.154)
OKLCHoklch(80.03% 0.161 107.2)
XYZxyz(44.5168, 52.2052, 9.9217)
Luminance0.5220 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC42A #2A30CA
analogous
#CA742A #CAC42A #80CA2A
triadic
#CAC42A #2ACAC4 #C42ACA
tetradic
#CAC42A #2ACA74 #2A30CA #CA2A80
square
#CAC42A #2ACA74 #2A30CA #CA2A80
split-complementary
#CAC42A #2A80CA #742ACA
monochromatic
#656215 #97931F #CAC42A #DCD755 #E6E388

Accessibility & contrast

On white

1.84
#CAC42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.44
#CAC42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC42A
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC42A#FFFFFF#000000##000000
##CAC42A1.001.8411.4411.44
#FFFFFF1.841.0021.0021.00
#00000011.4421.001.001.00
##00000011.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC00
Deuteranopia (green-blind)
#D8C238
Tritanopia (blue-blind)
#D9B7A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cac42a;
/* rgb */ color: rgb(202, 196, 42);
/* oklch */ color: oklch(80.0% 0.161 107.2);
Tailwind
colors: {
  custom: {
    50: '#ded572',
    500: '#cac42a',
    950: '#000000',
  },
}
SCSS
$custom: #cac42a;
$custom-light: #ded572;
$custom-dark: #000000;
JSON
{
  "hex": "#cac42a",
  "rgb": {
    "r": 202,
    "g": 196,
    "b": 42
  },
  "hsl": {
    "h": 57.75,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.8003,
    "c": 0.16112,
    "h": 107.2
  },
  "luminance": 0.52204
}

Semantic roles & 50–950 ramp

primary
#CAC42A
secondary
#292C6F
accent
#46E93F
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC42A

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

Preview Lab → · Contrast checker → · Palette generator →

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