#CAC72B#CAC72B

#CAC72B 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#CAC72B
RGBrgb(202, 199, 43)
HSLhsl(59, 65%, 48%)
HSVhsv(59, 79%, 79%)
CMYKcmyk(0%, 1.5%, 78.7%, 20.8%)
CIE-LABlab(78.22, -15.78, 71.47)
CIE-LCHlch(78.22, 73.19, 102.45°)
OKLaboklab(80.68% -0.0516 0.1551)
OKLCHoklch(80.68% 0.163 108.4)
XYZxyz(45.2184, 53.5793, 10.2450)
Luminance0.5358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC72B #2B2ECA
analogous
#CA772B #CAC72B #7DCA2B
triadic
#CAC72B #2BCAC7 #C72BCA
tetradic
#CAC72B #2BCA77 #2B2ECA #CA2B7D
square
#CAC72B #2BCA77 #2B2ECA #CA2B7D
split-complementary
#CAC72B #2B7DCA #772BCA
monochromatic
#656416 #989520 #CAC72B #DBD957 #E6E489

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC72B#FFFFFF#000000##000000
##CAC72B1.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)
#DAC439
Tritanopia (blue-blind)
#D9BAAB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cac72b;
/* rgb */ color: rgb(202, 199, 43);
/* oklch */ color: oklch(80.7% 0.163 108.4);
Tailwind
colors: {
  custom: {
    50: '#ded773',
    500: '#cac72b',
    950: '#000000',
  },
}
SCSS
$custom: #cac72b;
$custom-light: #ded773;
$custom-dark: #000000;
JSON
{
  "hex": "#cac72b",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 43
  },
  "hsl": {
    "h": 58.868,
    "s": 64.898,
    "l": 48.039
  },
  "oklch": {
    "l": 0.8068,
    "c": 0.16342,
    "h": 108.4
  },
  "luminance": 0.53578
}

Semantic roles & 50–950 ramp

primary
#CAC72B
secondary
#2A2B6F
accent
#43E840
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC72B

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

Preview Lab → · Contrast checker → · Palette generator →

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