#CAC72C#CAC72C

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

Color values

HEX#CAC72C
RGBrgb(202, 199, 44)
HSLhsl(59, 64%, 48%)
HSVhsv(59, 78%, 79%)
CMYKcmyk(0%, 1.5%, 78.2%, 20.8%)
CIE-LABlab(78.22, -15.74, 71.19)
CIE-LCHlch(78.22, 72.91, 102.47°)
OKLaboklab(80.69% -0.0514 0.1546)
OKLCHoklch(80.69% 0.163 108.4)
XYZxyz(45.2370, 53.5868, 10.3428)
Luminance0.5359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC72C #2C2FCA
analogous
#CA782C #CAC72C #7ECA2C
triadic
#CAC72C #2CCAC7 #C72CCA
tetradic
#CAC72C #2CCA78 #2C2FCA #CA2C7E
square
#CAC72C #2CCA78 #2C2FCA #CA2C7E
split-complementary
#CAC72C #2C7ECA #782CCA
monochromatic
#656416 #989521 #CAC72C #DBD858 #E6E48B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC72C#FFFFFF#000000##000000
##CAC72C1.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: #cac72c;
/* rgb */ color: rgb(202, 199, 44);
/* oklch */ color: oklch(80.7% 0.163 108.4);
Tailwind
colors: {
  custom: {
    50: '#ded773',
    500: '#cac72c',
    950: '#000000',
  },
}
SCSS
$custom: #cac72c;
$custom-light: #ded773;
$custom-dark: #000000;
JSON
{
  "hex": "#cac72c",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 44
  },
  "hsl": {
    "h": 58.861,
    "s": 64.228,
    "l": 48.235
  },
  "oklch": {
    "l": 0.80685,
    "c": 0.16296,
    "h": 108.4
  },
  "luminance": 0.53585
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC72C

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

Preview Lab → · Contrast checker → · Palette generator →

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