#CAC952#CAC952

#CAC952 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.4% C 0.140 H 108.7°. Best body text is #000000 at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#CAC952
RGBrgb(202, 201, 82)
HSLhsl(60, 53%, 56%)
HSVhsv(60, 59%, 79%)
CMYKcmyk(0%, 0.5%, 59.4%, 20.8%)
CIE-LABlab(79.01, -14.78, 58.00)
CIE-LCHlch(79.01, 59.85, 104.29°)
OKLaboklab(81.39% -0.045 0.133)
OKLCHoklch(81.39% 0.14 108.7)
XYZxyz(46.7682, 54.9403, 16.1220)
Luminance0.5494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC952 #5253CA
analogous
#CA8D52 #CAC952 #8FCA52
triadic
#CAC952 #52CAC9 #C952CA
tetradic
#CAC952 #52CA8D #5253CA #CA528F
square
#CAC952 #52CA8D #5253CA #CA528F
split-complementary
#CAC952 #528FCA #8D52CA
monochromatic
#7C7B26 #ABAA34 #CAC952 #D8D881 #E7E6B0

Accessibility & contrast

On white

1.75
#CAC952 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.99
#CAC952 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC952
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC952#FFFFFF#000000##000000
##CAC9521.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C144
Deuteranopia (green-blind)
#DAC659
Tritanopia (blue-blind)
#D7BDB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cac952;
/* rgb */ color: rgb(202, 201, 82);
/* oklch */ color: oklch(81.4% 0.140 108.7);
Tailwind
colors: {
  custom: {
    50: '#ddd987',
    500: '#cac952',
    950: '#000000',
  },
}
SCSS
$custom: #cac952;
$custom-light: #ddd987;
$custom-dark: #000000;
JSON
{
  "hex": "#cac952",
  "rgb": {
    "r": 202,
    "g": 201,
    "b": 82
  },
  "hsl": {
    "h": 59.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.81392,
    "c": 0.14038,
    "h": 108.7
  },
  "luminance": 0.54939
}

Semantic roles & 50–950 ramp

primary
#CAC952
secondary
#3C3D84
accent
#4DDD4B
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CAC952

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

Preview Lab → · Contrast checker → · Palette generator →

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