#CAC52F#CAC52F

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

Color values

HEX#CAC52F
RGBrgb(202, 197, 47)
HSLhsl(58, 62%, 49%)
HSVhsv(58, 77%, 79%)
CMYKcmyk(0%, 2.5%, 76.7%, 20.8%)
CIE-LABlab(77.70, -14.63, 69.83)
CIE-LCHlch(77.70, 71.35, 101.83°)
OKLaboklab(80.27% -0.048 0.1523)
OKLCHoklch(80.27% 0.16 107.5)
XYZxyz(44.8383, 52.6959, 10.4982)
Luminance0.5269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC52F #2F34CA
analogous
#CA782F #CAC52F #81CA2F
triadic
#CAC52F #2FCAC5 #C52FCA
tetradic
#CAC52F #2FCA78 #2F34CA #CA2F81
square
#CAC52F #2FCA78 #2F34CA #CA2F81
split-complementary
#CAC52F #2F81CA #782FCA
monochromatic
#676418 #989523 #CAC52F #D9D55D #E5E28F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC52F#FFFFFF#000000##000000
##CAC52F1.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)
#D6BD02
Deuteranopia (green-blind)
#D9C23C
Tritanopia (blue-blind)
#D9B8A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cac52f;
/* rgb */ color: rgb(202, 197, 47);
/* oklch */ color: oklch(80.3% 0.160 107.5);
Tailwind
colors: {
  custom: {
    50: '#ded674',
    500: '#cac52f',
    950: '#000000',
  },
}
SCSS
$custom: #cac52f;
$custom-light: #ded674;
$custom-dark: #000000;
JSON
{
  "hex": "#cac52f",
  "rgb": {
    "r": 202,
    "g": 197,
    "b": 47
  },
  "hsl": {
    "h": 58.065,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.8027,
    "c": 0.15968,
    "h": 107.5
  },
  "luminance": 0.52694
}

Semantic roles & 50–950 ramp

primary
#CAC52F
secondary
#2C2F71
accent
#48E542
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC52F

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

Preview Lab → · Contrast checker → · Palette generator →

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