#CAC04C#CAC04C

#CAC04C is a light, vivid yellow. Relative luminance 0.508; OKLCH L 79.4% C 0.136 H 104.4°. Best body text is #000000 at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#CAC04C
RGBrgb(202, 192, 76)
HSLhsl(55, 54%, 55%)
HSVhsv(55, 62%, 79%)
CMYKcmyk(0%, 5%, 62.4%, 20.8%)
CIE-LABlab(76.55, -10.61, 57.92)
CIE-LCHlch(76.55, 58.88, 100.39°)
OKLaboklab(79.42% -0.0338 0.132)
OKLCHoklch(79.42% 0.136 104.4)
XYZxyz(44.5129, 50.7792, 14.2927)
Luminance0.5078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC04C #4C56CA
analogous
#CA814C #CAC04C #95CA4C
triadic
#CAC04C #4CCAC0 #C04CCA
tetradic
#CAC04C #4CCA81 #4C56CA #CA4C95
square
#CAC04C #4CCA81 #4C56CA #CA4C95
split-complementary
#CAC04C #4C95CA #814CCA
monochromatic
#787124 #A79E32 #CAC04C #D8D17B #E6E1AA

Accessibility & contrast

On white

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

On black

11.16
#CAC04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC04C
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC04C#FFFFFF#000000##000000
##CAC04C1.001.8811.1611.16
#FFFFFF1.881.0021.0021.00
#00000011.1621.001.001.00
##00000011.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cac04c;
/* rgb */ color: rgb(202, 192, 76);
/* oklch */ color: oklch(79.4% 0.136 104.4);
Tailwind
colors: {
  custom: {
    50: '#ddd283',
    500: '#cac04c',
    950: '#000000',
  },
}
SCSS
$custom: #cac04c;
$custom-light: #ddd283;
$custom-dark: #000000;
JSON
{
  "hex": "#cac04c",
  "rgb": {
    "r": 202,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 55.238,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.79415,
    "c": 0.13624,
    "h": 104.4
  },
  "luminance": 0.50778
}

Semantic roles & 50–950 ramp

primary
#CAC04C
secondary
#3A3F80
accent
#56DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC04C

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

Preview Lab → · Contrast checker → · Palette generator →

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