#CAC431#CAC431

#CAC431 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.1% C 0.158 H 107.1°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#CAC431
RGBrgb(202, 196, 49)
HSLhsl(58, 61%, 49%)
HSVhsv(58, 76%, 79%)
CMYKcmyk(0%, 3%, 75.7%, 20.8%)
CIE-LABlab(77.44, -14.05, 68.98)
CIE-LCHlch(77.44, 70.39, 101.51°)
OKLaboklab(80.07% -0.0463 0.1508)
OKLCHoklch(80.07% 0.158 107.1)
XYZxyz(44.6532, 52.2598, 10.6401)
Luminance0.5226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC431 #3137CA
analogous
#CA7831 #CAC431 #84CA31
triadic
#CAC431 #31CAC4 #C431CA
tetradic
#CAC431 #31CA78 #3137CA #CA3184
square
#CAC431 #31CA78 #3137CA #CA3184
split-complementary
#CAC431 #3184CA #7831CA
monochromatic
#676419 #999425 #CAC431 #D8D460 #E4E191

Accessibility & contrast

On white

1.83
#CAC431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#CAC431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC431
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC431#FFFFFF#000000##000000
##CAC4311.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC0B
Deuteranopia (green-blind)
#D8C23D
Tritanopia (blue-blind)
#D9B7A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cac431;
/* rgb */ color: rgb(202, 196, 49);
/* oklch */ color: oklch(80.1% 0.158 107.1);
Tailwind
colors: {
  custom: {
    50: '#ded575',
    500: '#cac431',
    950: '#000000',
  },
}
SCSS
$custom: #cac431;
$custom-light: #ded575;
$custom-dark: #000000;
JSON
{
  "hex": "#cac431",
  "rgb": {
    "r": 202,
    "g": 196,
    "b": 49
  },
  "hsl": {
    "h": 57.647,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.80067,
    "c": 0.15776,
    "h": 107.1
  },
  "luminance": 0.52258
}

Semantic roles & 50–950 ramp

primary
#CAC431
secondary
#2E3072
accent
#4AE444
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC431

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

Preview Lab → · Contrast checker → · Palette generator →

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