#CAC04F#CAC04F

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

Color values

HEX#CAC04F
RGBrgb(202, 192, 79)
HSLhsl(55, 54%, 55%)
HSVhsv(55, 61%, 79%)
CMYKcmyk(0%, 5%, 60.9%, 20.8%)
CIE-LABlab(76.57, -10.42, 56.65)
CIE-LCHlch(76.57, 57.60, 100.42°)
OKLaboklab(79.44% -0.033 0.1297)
OKLCHoklch(79.44% 0.134 104.3)
XYZxyz(44.6196, 50.8219, 14.8549)
Luminance0.5082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC04F #4F59CA
analogous
#CA824F #CAC04F #96CA4F
triadic
#CAC04F #4FCAC0 #C04FCA
tetradic
#CAC04F #4FCA82 #4F59CA #CA4F96
square
#CAC04F #4FCA82 #4F59CA #CA4F96
split-complementary
#CAC04F #4F96CA #824FCA
monochromatic
#7A7325 #A99F33 #CAC04F #D8D17E #E6E2AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC04F#FFFFFF#000000##000000
##CAC04F1.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)
#D0BA42
Deuteranopia (green-blind)
#D3BF55
Tritanopia (blue-blind)
#D8B4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac04f;
/* rgb */ color: rgb(202, 192, 79);
/* oklch */ color: oklch(79.4% 0.134 104.3);
Tailwind
colors: {
  custom: {
    50: '#ddd285',
    500: '#cac04f',
    950: '#000000',
  },
}
SCSS
$custom: #cac04f;
$custom-light: #ddd285;
$custom-dark: #000000;
JSON
{
  "hex": "#cac04f",
  "rgb": {
    "r": 202,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 55.122,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.79444,
    "c": 0.13382,
    "h": 104.3
  },
  "luminance": 0.5082
}

Semantic roles & 50–950 ramp

primary
#CAC04F
secondary
#3B4182
accent
#57DD4B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC04F

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

Preview Lab → · Contrast checker → · Palette generator →

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