#CAC548#CAC548

#CAC548 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.4% C 0.144 H 107.0°. Best body text is #000000 at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#CAC548
RGBrgb(202, 197, 72)
HSLhsl(58, 55%, 54%)
HSVhsv(58, 64%, 79%)
CMYKcmyk(0%, 2.5%, 64.4%, 20.8%)
CIE-LABlab(77.85, -13.41, 60.97)
CIE-LCHlch(77.85, 62.43, 102.40°)
OKLaboklab(80.44% -0.0422 0.1379)
OKLCHoklch(80.44% 0.144 107)
XYZxyz(45.4947, 52.9584, 13.9551)
Luminance0.5296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC548 #484DCA
analogous
#CA8448 #CAC548 #8ECA48
triadic
#CAC548 #48CAC5 #C548CA
tetradic
#CAC548 #48CA84 #484DCA #CA488E
square
#CAC548 #48CA84 #484DCA #CA488E
split-complementary
#CAC548 #488ECA #8448CA
monochromatic
#767222 #A5A030 #CAC548 #D8D477 #E5E3A7

Accessibility & contrast

On white

1.81
#CAC548 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.59
#CAC548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC548
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC548#FFFFFF#000000##000000
##CAC5481.001.8111.5911.59
#FFFFFF1.811.0021.0021.00
#00000011.5921.001.001.00
##00000011.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE38
Deuteranopia (green-blind)
#D7C350
Tritanopia (blue-blind)
#D8B9AB
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cac548;
/* rgb */ color: rgb(202, 197, 72);
/* oklch */ color: oklch(80.4% 0.144 107.0);
Tailwind
colors: {
  custom: {
    50: '#ddd681',
    500: '#cac548',
    950: '#000000',
  },
}
SCSS
$custom: #cac548;
$custom-light: #ddd681;
$custom-dark: #000000;
JSON
{
  "hex": "#cac548",
  "rgb": {
    "r": 202,
    "g": 197,
    "b": 72
  },
  "hsl": {
    "h": 57.692,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.80444,
    "c": 0.14417,
    "h": 107
  },
  "luminance": 0.52957
}

Semantic roles & 50–950 ramp

primary
#CAC548
secondary
#383B7E
accent
#4FDE49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC548

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

Preview Lab → · Contrast checker → · Palette generator →

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