#CAC72F#CAC72F

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

Color values

HEX#CAC72F
RGBrgb(202, 199, 47)
HSLhsl(59, 62%, 49%)
HSVhsv(59, 77%, 79%)
CMYKcmyk(0%, 1.5%, 76.7%, 20.8%)
CIE-LABlab(78.23, -15.63, 70.32)
CIE-LCHlch(78.23, 72.04, 102.53°)
OKLaboklab(80.7% -0.0508 0.1533)
OKLCHoklch(80.7% 0.162 108.3)
XYZxyz(45.2954, 53.6101, 10.6506)
Luminance0.5361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC72F #2F32CA
analogous
#CA7A2F #CAC72F #80CA2F
triadic
#CAC72F #2FCAC7 #C72FCA
tetradic
#CAC72F #2FCA7A #2F32CA #CA2F80
square
#CAC72F #2FCA7A #2F32CA #CA2F80
split-complementary
#CAC72F #2F80CA #7A2FCA
monochromatic
#676518 #989623 #CAC72F #D9D75D #E5E38F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #cac72f;
/* rgb */ color: rgb(202, 199, 47);
/* oklch */ color: oklch(80.7% 0.162 108.3);
Tailwind
colors: {
  custom: {
    50: '#ded774',
    500: '#cac72f',
    950: '#000000',
  },
}
SCSS
$custom: #cac72f;
$custom-light: #ded774;
$custom-dark: #000000;
JSON
{
  "hex": "#cac72f",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 47
  },
  "hsl": {
    "h": 58.839,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.807,
    "c": 0.16153,
    "h": 108.3
  },
  "luminance": 0.53609
}

Semantic roles & 50–950 ramp

primary
#CAC72F
secondary
#2C2E71
accent
#46E542
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC72F

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

Preview Lab → · Contrast checker → · Palette generator →

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