#CAC04E#CAC04E

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

Color values

HEX#CAC04E
RGBrgb(202, 192, 78)
HSLhsl(55, 54%, 55%)
HSVhsv(55, 61%, 79%)
CMYKcmyk(0%, 5%, 61.4%, 20.8%)
CIE-LABlab(76.56, -10.48, 57.07)
CIE-LCHlch(76.56, 58.03, 100.41°)
OKLaboklab(79.43% -0.0333 0.1305)
OKLCHoklch(79.43% 0.135 104.3)
XYZxyz(44.5835, 50.8075, 14.6646)
Luminance0.5081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC04E #4E58CA
analogous
#CA824E #CAC04E #96CA4E
triadic
#CAC04E #4ECAC0 #C04ECA
tetradic
#CAC04E #4ECA82 #4E58CA #CA4E96
square
#CAC04E #4ECA82 #4E58CA #CA4E96
split-complementary
#CAC04E #4E96CA #824ECA
monochromatic
#797224 #A89F32 #CAC04E #D8D17D #E6E2AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC04E#FFFFFF#000000##000000
##CAC04E1.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)
#D0BA41
Deuteranopia (green-blind)
#D3BF54
Tritanopia (blue-blind)
#D8B4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac04e;
/* rgb */ color: rgb(202, 192, 78);
/* oklch */ color: oklch(79.4% 0.135 104.3);
Tailwind
colors: {
  custom: {
    50: '#ddd284',
    500: '#cac04e',
    950: '#000000',
  },
}
SCSS
$custom: #cac04e;
$custom-light: #ddd284;
$custom-dark: #000000;
JSON
{
  "hex": "#cac04e",
  "rgb": {
    "r": 202,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 55.161,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.79434,
    "c": 0.13464,
    "h": 104.3
  },
  "luminance": 0.50806
}

Semantic roles & 50–950 ramp

primary
#CAC04E
secondary
#3B4082
accent
#56DD4B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC04E

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

Preview Lab → · Contrast checker → · Palette generator →

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