#CAC72E#CAC72E

#CAC72E 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#CAC72E
RGBrgb(202, 199, 46)
HSLhsl(59, 63%, 49%)
HSVhsv(59, 77%, 79%)
CMYKcmyk(0%, 1.5%, 77.2%, 20.8%)
CIE-LABlab(78.23, -15.67, 70.62)
CIE-LCHlch(78.23, 72.33, 102.51°)
OKLaboklab(80.69% -0.051 0.1538)
OKLCHoklch(80.69% 0.162 108.4)
XYZxyz(45.2755, 53.6022, 10.5456)
Luminance0.5360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC72E #2E31CA
analogous
#CA792E #CAC72E #7FCA2E
triadic
#CAC72E #2ECAC7 #C72ECA
tetradic
#CAC72E #2ECA79 #2E31CA #CA2E7F
square
#CAC72E #2ECA79 #2E31CA #CA2E7F
split-complementary
#CAC72E #2E7FCA #792ECA
monochromatic
#666517 #989623 #CAC72E #DAD75B #E5E38D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #cac72e;
/* rgb */ color: rgb(202, 199, 46);
/* oklch */ color: oklch(80.7% 0.162 108.4);
Tailwind
colors: {
  custom: {
    50: '#ded774',
    500: '#cac72e',
    950: '#000000',
  },
}
SCSS
$custom: #cac72e;
$custom-light: #ded774;
$custom-dark: #000000;
JSON
{
  "hex": "#cac72e",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 46
  },
  "hsl": {
    "h": 58.846,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.80695,
    "c": 0.16202,
    "h": 108.4
  },
  "luminance": 0.53601
}

Semantic roles & 50–950 ramp

primary
#CAC72E
secondary
#2C2D70
accent
#45E642
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC72E

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

Preview Lab → · Contrast checker → · Palette generator →

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