#CAC252#CAC252

#CAC252 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.9% C 0.133 H 105.2°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#CAC252
RGBrgb(202, 194, 82)
HSLhsl(56, 53%, 56%)
HSVhsv(56, 59%, 79%)
CMYKcmyk(0%, 4%, 59.4%, 20.8%)
CIE-LABlab(77.13, -11.23, 55.94)
CIE-LCHlch(77.13, 57.06, 101.35°)
OKLaboklab(79.9% -0.0349 0.1286)
OKLCHoklch(79.9% 0.133 105.2)
XYZxyz(45.1734, 51.7508, 15.5904)
Luminance0.5175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC252 #525ACA
analogous
#CA8652 #CAC252 #96CA52
triadic
#CAC252 #52CAC2 #C252CA
tetradic
#CAC252 #52CA86 #525ACA #CA5296
square
#CAC252 #52CA86 #525ACA #CA5296
split-complementary
#CAC252 #5296CA #8652CA
monochromatic
#7C7626 #ABA334 #CAC252 #D8D381 #E7E3B0

Accessibility & contrast

On white

1.85
#CAC252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#CAC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC252
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC252#FFFFFF#000000##000000
##CAC2521.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC46
Deuteranopia (green-blind)
#D5C158
Tritanopia (blue-blind)
#D8B6AA
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac252;
/* rgb */ color: rgb(202, 194, 82);
/* oklch */ color: oklch(79.9% 0.133 105.2);
Tailwind
colors: {
  custom: {
    50: '#ddd487',
    500: '#cac252',
    950: '#000000',
  },
}
SCSS
$custom: #cac252;
$custom-light: #ddd487;
$custom-dark: #000000;
JSON
{
  "hex": "#cac252",
  "rgb": {
    "r": 202,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 56,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.79898,
    "c": 0.13326,
    "h": 105.2
  },
  "luminance": 0.51749
}

Semantic roles & 50–950 ramp

primary
#CAC252
secondary
#3C4184
accent
#55DD4B
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CAC252

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

Preview Lab → · Contrast checker → · Palette generator →

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