#CAC72D#CAC72D

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

Color values

HEX#CAC72D
RGBrgb(202, 199, 45)
HSLhsl(59, 64%, 48%)
HSVhsv(59, 78%, 79%)
CMYKcmyk(0%, 1.5%, 77.7%, 20.8%)
CIE-LABlab(78.22, -15.71, 70.91)
CIE-LCHlch(78.22, 72.63, 102.49°)
OKLaboklab(80.69% -0.0512 0.1542)
OKLCHoklch(80.69% 0.162 108.4)
XYZxyz(45.2560, 53.5944, 10.4430)
Luminance0.5359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC72D #2D30CA
analogous
#CA792D #CAC72D #7ECA2D
triadic
#CAC72D #2DCAC7 #C72DCA
tetradic
#CAC72D #2DCA79 #2D30CA #CA2D7E
square
#CAC72D #2DCA79 #2D30CA #CA2D7E
split-complementary
#CAC72D #2D7ECA #792DCA
monochromatic
#666417 #989622 #CAC72D #DAD85A #E5E48C

Accessibility & contrast

On white

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

On black

11.72
#CAC72D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC72D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC72D#FFFFFF#000000##000000
##CAC72D1.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cac72d;
/* rgb */ color: rgb(202, 199, 45);
/* oklch */ color: oklch(80.7% 0.162 108.4);
Tailwind
colors: {
  custom: {
    50: '#ded774',
    500: '#cac72d',
    950: '#000000',
  },
}
SCSS
$custom: #cac72d;
$custom-light: #ded774;
$custom-dark: #000000;
JSON
{
  "hex": "#cac72d",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 45
  },
  "hsl": {
    "h": 58.854,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.8069,
    "c": 0.16249,
    "h": 108.4
  },
  "luminance": 0.53593
}

Semantic roles & 50–950 ramp

primary
#CAC72D
secondary
#2B2C70
accent
#44E741
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC72D

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

Preview Lab → · Contrast checker → · Palette generator →

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