#CAC052#CAC052

#CAC052 is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.5% C 0.131 H 104.1°. Best body text is #000000 at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#CAC052
RGBrgb(202, 192, 82)
HSLhsl(55, 53%, 56%)
HSVhsv(55, 59%, 79%)
CMYKcmyk(0%, 5%, 59.4%, 20.8%)
CIE-LABlab(76.60, -10.21, 55.35)
CIE-LCHlch(76.60, 56.28, 100.45°)
OKLaboklab(79.47% -0.032 0.1274)
OKLCHoklch(79.47% 0.131 104.1)
XYZxyz(44.7313, 50.8666, 15.4430)
Luminance0.5087 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC052 #525CCA
analogous
#CA8452 #CAC052 #98CA52
triadic
#CAC052 #52CAC0 #C052CA
tetradic
#CAC052 #52CA84 #525CCA #CA5298
square
#CAC052 #52CA84 #525CCA #CA5298
split-complementary
#CAC052 #5298CA #8452CA
monochromatic
#7C7526 #ABA134 #CAC052 #D8D181 #E7E2B0

Accessibility & contrast

On white

1.88
#CAC052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.17
#CAC052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC052
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC052#FFFFFF#000000##000000
##CAC0521.001.8811.1711.17
#FFFFFF1.881.0021.0021.00
#00000011.1721.001.001.00
##00000011.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA46
Deuteranopia (green-blind)
#D3BF58
Tritanopia (blue-blind)
#D8B4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac052;
/* rgb */ color: rgb(202, 192, 82);
/* oklch */ color: oklch(79.5% 0.131 104.1);
Tailwind
colors: {
  custom: {
    50: '#ddd287',
    500: '#cac052',
    950: '#000000',
  },
}
SCSS
$custom: #cac052;
$custom-light: #ddd287;
$custom-dark: #000000;
JSON
{
  "hex": "#cac052",
  "rgb": {
    "r": 202,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 55,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.79474,
    "c": 0.13132,
    "h": 104.1
  },
  "luminance": 0.50865
}

Semantic roles & 50–950 ramp

primary
#CAC052
secondary
#3C4284
accent
#57DD4B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC052

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

Preview Lab → · Contrast checker → · Palette generator →

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