#CAC52E#CAC52E

#CAC52E 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#CAC52E
RGBrgb(202, 197, 46)
HSLhsl(58, 63%, 49%)
HSVhsv(58, 77%, 79%)
CMYKcmyk(0%, 2.5%, 77.2%, 20.8%)
CIE-LABlab(77.69, -14.67, 70.13)
CIE-LCHlch(77.69, 71.65, 101.81°)
OKLaboklab(80.27% -0.0482 0.1527)
OKLCHoklch(80.27% 0.16 107.5)
XYZxyz(44.8183, 52.6879, 10.3932)
Luminance0.5269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC52E #2E33CA
analogous
#CA772E #CAC52E #81CA2E
triadic
#CAC52E #2ECAC5 #C52ECA
tetradic
#CAC52E #2ECA77 #2E33CA #CA2E81
square
#CAC52E #2ECA77 #2E33CA #CA2E81
split-complementary
#CAC52E #2E81CA #772ECA
monochromatic
#666417 #989423 #CAC52E #DAD65B #E5E28D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC52E#FFFFFF#000000##000000
##CAC52E1.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)
#D9C23B
Tritanopia (blue-blind)
#D9B8A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cac52e;
/* rgb */ color: rgb(202, 197, 46);
/* oklch */ color: oklch(80.3% 0.160 107.5);
Tailwind
colors: {
  custom: {
    50: '#ded674',
    500: '#cac52e',
    950: '#000000',
  },
}
SCSS
$custom: #cac52e;
$custom-light: #ded674;
$custom-dark: #000000;
JSON
{
  "hex": "#cac52e",
  "rgb": {
    "r": 202,
    "g": 197,
    "b": 46
  },
  "hsl": {
    "h": 58.077,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.80265,
    "c": 0.16017,
    "h": 107.5
  },
  "luminance": 0.52686
}

Semantic roles & 50–950 ramp

primary
#CAC52E
secondary
#2C2E70
accent
#47E642
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC52E

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

Preview Lab → · Contrast checker → · Palette generator →

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