#CAC931#CAC931

#CAC931 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.1% C 0.162 H 109.1°. Best body text is #000000 at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#CAC931
RGBrgb(202, 201, 49)
HSLhsl(60, 61%, 49%)
HSVhsv(60, 76%, 79%)
CMYKcmyk(0%, 0.5%, 75.7%, 20.8%)
CIE-LABlab(78.78, -16.55, 70.21)
CIE-LCHlch(78.78, 72.13, 103.27°)
OKLaboklab(81.14% -0.0533 0.1534)
OKLCHoklch(81.14% 0.162 109.1)
XYZxyz(45.7999, 54.5530, 11.0224)
Luminance0.5455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC931 #3132CA
analogous
#CA7D31 #CAC931 #7FCA31
triadic
#CAC931 #31CAC9 #C931CA
tetradic
#CAC931 #31CA7D #3132CA #CA317F
square
#CAC931 #31CA7D #3132CA #CA317F
split-complementary
#CAC931 #317FCA #7D31CA
monochromatic
#676719 #999825 #CAC931 #D8D860 #E4E491

Accessibility & contrast

On white

1.76
#CAC931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.91
#CAC931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC931
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC931#FFFFFF#000000##000000
##CAC9311.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC006
Deuteranopia (green-blind)
#DCC53E
Tritanopia (blue-blind)
#D9BCAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cac931;
/* rgb */ color: rgb(202, 201, 49);
/* oklch */ color: oklch(81.1% 0.162 109.1);
Tailwind
colors: {
  custom: {
    50: '#ded976',
    500: '#cac931',
    950: '#000000',
  },
}
SCSS
$custom: #cac931;
$custom-light: #ded976;
$custom-dark: #000000;
JSON
{
  "hex": "#cac931",
  "rgb": {
    "r": 202,
    "g": 201,
    "b": 49
  },
  "hsl": {
    "h": 59.608,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.81142,
    "c": 0.16242,
    "h": 109.1
  },
  "luminance": 0.54552
}

Semantic roles & 50–950 ramp

primary
#CAC931
secondary
#2E2E72
accent
#45E444
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC931

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

Preview Lab → · Contrast checker → · Palette generator →

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