#CAC02C#CAC02C

#CAC02C is a light, vivid yellow. Relative luminance 0.504; OKLCH L 79.2% C 0.157 H 105.4°. Best body text is #000000 at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#CAC02C
RGBrgb(202, 192, 44)
HSLhsl(56, 64%, 48%)
HSVhsv(56, 78%, 79%)
CMYKcmyk(0%, 5%, 78.2%, 20.8%)
CIE-LABlab(76.34, -12.21, 69.52)
CIE-LCHlch(76.34, 70.58, 99.96°)
OKLaboklab(79.18% -0.0415 0.1511)
OKLCHoklch(79.18% 0.157 105.4)
XYZxyz(43.6633, 50.4394, 9.8182)
Luminance0.5044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC02C #2C36CA
analogous
#CA712C #CAC02C #85CA2C
triadic
#CAC02C #2CCAC0 #C02CCA
tetradic
#CAC02C #2CCA71 #2C36CA #CA2C85
square
#CAC02C #2CCA71 #2C36CA #CA2C85
split-complementary
#CAC02C #2C85CA #712CCA
monochromatic
#656016 #989021 #CAC02C #DBD258 #E6E08B

Accessibility & contrast

On white

1.89
#CAC02C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.09
#CAC02C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC02C
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC02C#FFFFFF#000000##000000
##CAC02C1.001.8911.0911.09
#FFFFFF1.891.0021.0021.00
#00000011.0921.001.001.00
##00000011.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B900
Deuteranopia (green-blind)
#D5BF38
Tritanopia (blue-blind)
#D9B3A5
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #cac02c;
/* rgb */ color: rgb(202, 192, 44);
/* oklch */ color: oklch(79.2% 0.157 105.4);
Tailwind
colors: {
  custom: {
    50: '#ded272',
    500: '#cac02c',
    950: '#000000',
  },
}
SCSS
$custom: #cac02c;
$custom-light: #ded272;
$custom-dark: #000000;
JSON
{
  "hex": "#cac02c",
  "rgb": {
    "r": 202,
    "g": 192,
    "b": 44
  },
  "hsl": {
    "h": 56.203,
    "s": 64.228,
    "l": 48.235
  },
  "oklch": {
    "l": 0.79184,
    "c": 0.15666,
    "h": 105.4
  },
  "luminance": 0.50438
}

Semantic roles & 50–950 ramp

primary
#CAC02C
secondary
#2A2F70
accent
#4BE741
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC02C

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

Preview Lab → · Contrast checker → · Palette generator →

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