#CAC72A#CAC72A

#CAC72A is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.7% C 0.164 H 108.4°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#CAC72A
RGBrgb(202, 199, 42)
HSLhsl(59, 66%, 48%)
HSVhsv(59, 79%, 79%)
CMYKcmyk(0%, 1.5%, 79.2%, 20.8%)
CIE-LABlab(78.21, -15.81, 71.75)
CIE-LCHlch(78.21, 73.47, 102.43°)
OKLaboklab(80.68% -0.0517 0.1555)
OKLCHoklch(80.68% 0.164 108.4)
XYZxyz(45.2003, 53.5721, 10.1495)
Luminance0.5357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC72A #2A2DCA
analogous
#CA772A #CAC72A #7DCA2A
triadic
#CAC72A #2ACAC7 #C72ACA
tetradic
#CAC72A #2ACA77 #2A2DCA #CA2A7D
square
#CAC72A #2ACA77 #2A2DCA #CA2A7D
split-complementary
#CAC72A #2A7DCA #772ACA
monochromatic
#656315 #97951F #CAC72A #DCD955 #E6E588

Accessibility & contrast

On white

1.79
#CAC72A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.71
#CAC72A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC72A
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC72A#FFFFFF#000000##000000
##CAC72A1.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF00
Deuteranopia (green-blind)
#DAC438
Tritanopia (blue-blind)
#D9BAAB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cac72a;
/* rgb */ color: rgb(202, 199, 42);
/* oklch */ color: oklch(80.7% 0.164 108.4);
Tailwind
colors: {
  custom: {
    50: '#ded772',
    500: '#cac72a',
    950: '#000000',
  },
}
SCSS
$custom: #cac72a;
$custom-light: #ded772;
$custom-dark: #000000;
JSON
{
  "hex": "#cac72a",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 42
  },
  "hsl": {
    "h": 58.875,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.80675,
    "c": 0.16386,
    "h": 108.4
  },
  "luminance": 0.53571
}

Semantic roles & 50–950 ramp

primary
#CAC72A
secondary
#292A6F
accent
#42E93F
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC72A

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

Preview Lab → · Contrast checker → · Palette generator →

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