#CAC752#CAC752

#CAC752 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.0% C 0.138 H 107.7°. Best body text is #000000 at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#CAC752
RGBrgb(202, 199, 82)
HSLhsl(59, 53%, 56%)
HSVhsv(59, 59%, 79%)
CMYKcmyk(0%, 1.5%, 59.4%, 20.8%)
CIE-LABlab(78.47, -13.77, 57.41)
CIE-LCHlch(78.47, 59.04, 103.49°)
OKLaboklab(80.96% -0.0421 0.1317)
OKLCHoklch(80.96% 0.138 107.7)
XYZxyz(46.3050, 54.0140, 15.9676)
Luminance0.5401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC752 #5255CA
analogous
#CA8B52 #CAC752 #91CA52
triadic
#CAC752 #52CAC7 #C752CA
tetradic
#CAC752 #52CA8B #5255CA #CA5291
square
#CAC752 #52CA8B #5255CA #CA5291
split-complementary
#CAC752 #5291CA #8B52CA
monochromatic
#7C7A26 #ABA834 #CAC752 #D8D681 #E7E5B0

Accessibility & contrast

On white

1.78
#CAC752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.80
#CAC752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC752
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC752#FFFFFF#000000##000000
##CAC7521.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C045
Deuteranopia (green-blind)
#D8C459
Tritanopia (blue-blind)
#D7BBAE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac752;
/* rgb */ color: rgb(202, 199, 82);
/* oklch */ color: oklch(81.0% 0.138 107.7);
Tailwind
colors: {
  custom: {
    50: '#ddd787',
    500: '#cac752',
    950: '#000000',
  },
}
SCSS
$custom: #cac752;
$custom-light: #ddd787;
$custom-dark: #000000;
JSON
{
  "hex": "#cac752",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 82
  },
  "hsl": {
    "h": 58.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.80964,
    "c": 0.13831,
    "h": 107.7
  },
  "luminance": 0.54013
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC752

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

Preview Lab → · Contrast checker → · Palette generator →

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