#CAC839#CAC839

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

Color values

HEX#CAC839
RGBrgb(202, 200, 57)
HSLhsl(59, 58%, 51%)
HSVhsv(59, 72%, 79%)
CMYKcmyk(0%, 1%, 71.8%, 20.8%)
CIE-LABlab(78.56, -15.71, 67.37)
CIE-LCHlch(78.56, 69.18, 103.13°)
OKLaboklab(80.97% -0.0502 0.1489)
OKLCHoklch(80.97% 0.157 108.6)
XYZxyz(45.7516, 54.1620, 11.9144)
Luminance0.5416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC839 #393BCA
analogous
#CA7F39 #CAC839 #84CA39
triadic
#CAC839 #39CAC8 #C839CA
tetradic
#CAC839 #39CA7F #393BCA #CA3984
square
#CAC839 #39CA7F #393BCA #CA3984
split-complementary
#CAC839 #3984CA #7F39CA
monochromatic
#6C6B1D #9C9A2A #CAC839 #D7D569 #E4E39A

Accessibility & contrast

On white

1.77
#CAC839 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC839#FFFFFF#000000##000000
##CAC8391.001.7711.8311.83
#FFFFFF1.771.0021.0021.00
#00000011.8321.001.001.00
##00000011.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C01E
Deuteranopia (green-blind)
#DAC544
Tritanopia (blue-blind)
#D8BBAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac839;
/* rgb */ color: rgb(202, 200, 57);
/* oklch */ color: oklch(81.0% 0.157 108.6);
Tailwind
colors: {
  custom: {
    50: '#ded879',
    500: '#cac839',
    950: '#000000',
  },
}
SCSS
$custom: #cac839;
$custom-light: #ded879;
$custom-dark: #000000;
JSON
{
  "hex": "#cac839",
  "rgb": {
    "r": 202,
    "g": 200,
    "b": 57
  },
  "hsl": {
    "h": 59.172,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.80974,
    "c": 0.15709,
    "h": 108.6
  },
  "luminance": 0.54161
}

Semantic roles & 50–950 ramp

primary
#CAC839
secondary
#323375
accent
#49E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC839

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

Preview Lab → · Contrast checker → · Palette generator →

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