#CAC852#CAC852

#CAC852 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.2% C 0.139 H 108.2°. Best body text is #000000 at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#CAC852
RGBrgb(202, 200, 82)
HSLhsl(59, 53%, 56%)
HSVhsv(59, 59%, 79%)
CMYKcmyk(0%, 1%, 59.4%, 20.8%)
CIE-LABlab(78.74, -14.27, 57.70)
CIE-LCHlch(78.74, 59.44, 103.89°)
OKLaboklab(81.18% -0.0436 0.1324)
OKLCHoklch(81.18% 0.139 108.2)
XYZxyz(46.5358, 54.4756, 16.0445)
Luminance0.5447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC852 #5254CA
analogous
#CA8C52 #CAC852 #90CA52
triadic
#CAC852 #52CAC8 #C852CA
tetradic
#CAC852 #52CA8C #5254CA #CA5290
square
#CAC852 #52CA8C #5254CA #CA5290
split-complementary
#CAC852 #5290CA #8C52CA
monochromatic
#7C7A26 #ABA934 #CAC852 #D8D781 #E7E6B0

Accessibility & contrast

On white

1.77
#CAC852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.89
#CAC852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC852
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC852#FFFFFF#000000##000000
##CAC8521.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C045
Deuteranopia (green-blind)
#D9C559
Tritanopia (blue-blind)
#D7BCAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cac852;
/* rgb */ color: rgb(202, 200, 82);
/* oklch */ color: oklch(81.2% 0.139 108.2);
Tailwind
colors: {
  custom: {
    50: '#ddd887',
    500: '#cac852',
    950: '#000000',
  },
}
SCSS
$custom: #cac852;
$custom-light: #ddd887;
$custom-dark: #000000;
JSON
{
  "hex": "#cac852",
  "rgb": {
    "r": 202,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 59,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.81178,
    "c": 0.13934,
    "h": 108.2
  },
  "luminance": 0.54474
}

Semantic roles & 50–950 ramp

primary
#CAC852
secondary
#3C3E84
accent
#4EDD4B
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CAC852

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

Preview Lab → · Contrast checker → · Palette generator →

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