#CAC32F#CAC32F

#CAC32F is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.8% C 0.158 H 106.6°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#CAC32F
RGBrgb(202, 195, 47)
HSLhsl(57, 62%, 49%)
HSVhsv(57, 77%, 79%)
CMYKcmyk(0%, 3.5%, 76.7%, 20.8%)
CIE-LABlab(77.16, -13.62, 69.35)
CIE-LCHlch(77.16, 70.67, 101.11°)
OKLaboklab(79.84% -0.0452 0.1512)
OKLCHoklch(79.84% 0.158 106.6)
XYZxyz(44.3872, 51.7936, 10.3478)
Luminance0.5179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC32F #2F36CA
analogous
#CA762F #CAC32F #84CA2F
triadic
#CAC32F #2FCAC3 #C32FCA
tetradic
#CAC32F #2FCA76 #2F36CA #CA2F84
square
#CAC32F #2FCA76 #2F36CA #CA2F84
split-complementary
#CAC32F #2F84CA #762FCA
monochromatic
#676318 #989323 #CAC32F #D9D45D #E5E18F

Accessibility & contrast

On white

1.85
#CAC32F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.36
#CAC32F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC32F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC32F#FFFFFF#000000##000000
##CAC32F1.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BB04
Deuteranopia (green-blind)
#D7C13B
Tritanopia (blue-blind)
#D9B6A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac32f;
/* rgb */ color: rgb(202, 195, 47);
/* oklch */ color: oklch(79.8% 0.158 106.6);
Tailwind
colors: {
  custom: {
    50: '#ded474',
    500: '#cac32f',
    950: '#000000',
  },
}
SCSS
$custom: #cac32f;
$custom-light: #ded474;
$custom-dark: #000000;
JSON
{
  "hex": "#cac32f",
  "rgb": {
    "r": 202,
    "g": 195,
    "b": 47
  },
  "hsl": {
    "h": 57.29,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.79841,
    "c": 0.15786,
    "h": 106.6
  },
  "luminance": 0.51792
}

Semantic roles & 50–950 ramp

primary
#CAC32F
secondary
#2C2F71
accent
#4AE542
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC32F

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

Preview Lab → · Contrast checker → · Palette generator →

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