#CAC52C#CAC52C

#CAC52C is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.3% C 0.161 H 107.6°. Best body text is #000000 at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#CAC52C
RGBrgb(202, 197, 44)
HSLhsl(58, 64%, 48%)
HSVhsv(58, 78%, 79%)
CMYKcmyk(0%, 2.5%, 78.2%, 20.8%)
CIE-LABlab(77.68, -14.74, 70.71)
CIE-LCHlch(77.68, 72.23, 101.77°)
OKLaboklab(80.26% -0.0486 0.1536)
OKLCHoklch(80.26% 0.161 107.6)
XYZxyz(44.7798, 52.6725, 10.1904)
Luminance0.5267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC52C #2C31CA
analogous
#CA762C #CAC52C #80CA2C
triadic
#CAC52C #2CCAC5 #C52CCA
tetradic
#CAC52C #2CCA76 #2C31CA #CA2C80
square
#CAC52C #2CCA76 #2C31CA #CA2C80
split-complementary
#CAC52C #2C80CA #762CCA
monochromatic
#656316 #989421 #CAC52C #DBD758 #E6E38B

Accessibility & contrast

On white

1.82
#CAC52C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.53
#CAC52C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC52C
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC52C#FFFFFF#000000##000000
##CAC52C1.001.8211.5311.53
#FFFFFF1.821.0021.0021.00
#00000011.5321.001.001.00
##00000011.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BD00
Deuteranopia (green-blind)
#D9C239
Tritanopia (blue-blind)
#D9B8A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cac52c;
/* rgb */ color: rgb(202, 197, 44);
/* oklch */ color: oklch(80.3% 0.161 107.6);
Tailwind
colors: {
  custom: {
    50: '#ded673',
    500: '#cac52c',
    950: '#000000',
  },
}
SCSS
$custom: #cac52c;
$custom-light: #ded673;
$custom-dark: #000000;
JSON
{
  "hex": "#cac52c",
  "rgb": {
    "r": 202,
    "g": 197,
    "b": 44
  },
  "hsl": {
    "h": 58.101,
    "s": 64.228,
    "l": 48.235
  },
  "oklch": {
    "l": 0.80255,
    "c": 0.16112,
    "h": 107.6
  },
  "luminance": 0.52671
}

Semantic roles & 50–950 ramp

primary
#CAC52C
secondary
#2A2D70
accent
#46E741
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC52C

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

Preview Lab → · Contrast checker → · Palette generator →

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