#CAC52D#CAC52D

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

Color values

HEX#CAC52D
RGBrgb(202, 197, 45)
HSLhsl(58, 64%, 48%)
HSVhsv(58, 78%, 79%)
CMYKcmyk(0%, 2.5%, 77.7%, 20.8%)
CIE-LABlab(77.69, -14.70, 70.43)
CIE-LCHlch(77.69, 71.94, 101.79°)
OKLaboklab(80.26% -0.0484 0.1532)
OKLCHoklch(80.26% 0.161 107.5)
XYZxyz(44.7989, 52.6801, 10.2906)
Luminance0.5268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC52D #2D32CA
analogous
#CA762D #CAC52D #80CA2D
triadic
#CAC52D #2DCAC5 #C52DCA
tetradic
#CAC52D #2DCA76 #2D32CA #CA2D80
square
#CAC52D #2DCA76 #2D32CA #CA2D80
split-complementary
#CAC52D #2D80CA #762DCA
monochromatic
#666317 #989422 #CAC52D #DAD65A #E5E38C

Accessibility & contrast

On white

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

On black

11.54
#CAC52D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC52D
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC52D#FFFFFF#000000##000000
##CAC52D1.001.8211.5411.54
#FFFFFF1.821.0021.0021.00
#00000011.5421.001.001.00
##00000011.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cac52d;
/* rgb */ color: rgb(202, 197, 45);
/* oklch */ color: oklch(80.3% 0.161 107.5);
Tailwind
colors: {
  custom: {
    50: '#ded673',
    500: '#cac52d',
    950: '#000000',
  },
}
SCSS
$custom: #cac52d;
$custom-light: #ded673;
$custom-dark: #000000;
JSON
{
  "hex": "#cac52d",
  "rgb": {
    "r": 202,
    "g": 197,
    "b": 45
  },
  "hsl": {
    "h": 58.089,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.8026,
    "c": 0.16065,
    "h": 107.5
  },
  "luminance": 0.52679
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC52D

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

Preview Lab → · Contrast checker → · Palette generator →

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