#CAC837#CAC837

#CAC837 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.0% C 0.158 H 108.7°. Best body text is #000000 at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#CAC837
RGBrgb(202, 200, 55)
HSLhsl(59, 58%, 50%)
HSVhsv(59, 73%, 79%)
CMYKcmyk(0%, 1%, 72.8%, 20.8%)
CIE-LABlab(78.54, -15.80, 68.04)
CIE-LCHlch(78.54, 69.85, 103.08°)
OKLaboklab(80.96% -0.0506 0.1499)
OKLCHoklch(80.96% 0.158 108.7)
XYZxyz(45.7027, 54.1424, 11.6568)
Luminance0.5414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC837 #3739CA
analogous
#CA7F37 #CAC837 #82CA37
triadic
#CAC837 #37CAC8 #C837CA
tetradic
#CAC837 #37CA7F #3739CA #CA3782
square
#CAC837 #37CA7F #3739CA #CA3782
split-complementary
#CAC837 #3782CA #7F37CA
monochromatic
#6A691C #9B9929 #CAC837 #D7D567 #E4E398

Accessibility & contrast

On white

1.78
#CAC837 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.83
#CAC837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC837
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC837#FFFFFF#000000##000000
##CAC8371.001.7811.8311.83
#FFFFFF1.781.0021.0021.00
#00000011.8321.001.001.00
##00000011.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C01A
Deuteranopia (green-blind)
#DBC542
Tritanopia (blue-blind)
#D9BBAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac837;
/* rgb */ color: rgb(202, 200, 55);
/* oklch */ color: oklch(81.0% 0.158 108.7);
Tailwind
colors: {
  custom: {
    50: '#ded878',
    500: '#cac837',
    950: '#000000',
  },
}
SCSS
$custom: #cac837;
$custom-light: #ded878;
$custom-dark: #000000;
JSON
{
  "hex": "#cac837",
  "rgb": {
    "r": 202,
    "g": 200,
    "b": 55
  },
  "hsl": {
    "h": 59.184,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.80962,
    "c": 0.15824,
    "h": 108.7
  },
  "luminance": 0.54141
}

Semantic roles & 50–950 ramp

primary
#CAC837
secondary
#313274
accent
#49E146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC837

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

Preview Lab → · Contrast checker → · Palette generator →

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