#CAC937#CAC937

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

Color values

HEX#CAC937
RGBrgb(202, 201, 55)
HSLhsl(60, 58%, 50%)
HSVhsv(60, 73%, 79%)
CMYKcmyk(0%, 0.5%, 72.8%, 20.8%)
CIE-LABlab(78.81, -16.30, 68.30)
CIE-LCHlch(78.81, 70.22, 103.43°)
OKLaboklab(81.18% -0.052 0.1505)
OKLCHoklch(81.18% 0.159 109.1)
XYZxyz(45.9351, 54.6071, 11.7342)
Luminance0.5461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC937 #3738CA
analogous
#CA7F37 #CAC937 #81CA37
triadic
#CAC937 #37CAC9 #C937CA
tetradic
#CAC937 #37CA7F #3738CA #CA3781
square
#CAC937 #37CA7F #3738CA #CA3781
split-complementary
#CAC937 #3781CA #7F37CA
monochromatic
#6A6A1C #9B9A29 #CAC937 #D7D667 #E4E398

Accessibility & contrast

On white

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

On black

11.92
#CAC937 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC937
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC937#FFFFFF#000000##000000
##CAC9371.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C119
Deuteranopia (green-blind)
#DBC542
Tritanopia (blue-blind)
#D8BCAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cac937;
/* rgb */ color: rgb(202, 201, 55);
/* oklch */ color: oklch(81.2% 0.159 109.1);
Tailwind
colors: {
  custom: {
    50: '#ded978',
    500: '#cac937',
    950: '#000000',
  },
}
SCSS
$custom: #cac937;
$custom-light: #ded978;
$custom-dark: #000000;
JSON
{
  "hex": "#cac937",
  "rgb": {
    "r": 202,
    "g": 201,
    "b": 55
  },
  "hsl": {
    "h": 59.592,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.81177,
    "c": 0.15921,
    "h": 109.1
  },
  "luminance": 0.54606
}

Semantic roles & 50–950 ramp

primary
#CAC937
secondary
#313174
accent
#48E146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC937

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

Preview Lab → · Contrast checker → · Palette generator →

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