#CAC339#CAC339

#CAC339 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 79.9% C 0.152 H 106.4°. Best body text is #000000 at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#CAC339
RGBrgb(202, 195, 57)
HSLhsl(57, 58%, 51%)
HSVhsv(57, 72%, 79%)
CMYKcmyk(0%, 3.5%, 71.8%, 20.8%)
CIE-LABlab(77.21, -13.20, 66.08)
CIE-LCHlch(77.21, 67.38, 101.29°)
OKLaboklab(79.9% -0.0431 0.1461)
OKLCHoklch(79.9% 0.152 106.4)
XYZxyz(44.6125, 51.8838, 11.5347)
Luminance0.5188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC339 #3940CA
analogous
#CA7A39 #CAC339 #89CA39
triadic
#CAC339 #39CAC3 #C339CA
tetradic
#CAC339 #39CA7A #3940CA #CA3989
square
#CAC339 #39CA7A #3940CA #CA3989
split-complementary
#CAC339 #3989CA #7A39CA
monochromatic
#6C681D #9C972A #CAC339 #D7D269 #E4E09A

Accessibility & contrast

On white

1.85
#CAC339 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.38
#CAC339 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC339
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC339#FFFFFF#000000##000000
##CAC3391.001.8511.3811.38
#FFFFFF1.851.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC20
Deuteranopia (green-blind)
#D7C143
Tritanopia (blue-blind)
#D9B6A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cac339;
/* rgb */ color: rgb(202, 195, 57);
/* oklch */ color: oklch(79.9% 0.152 106.4);
Tailwind
colors: {
  custom: {
    50: '#ded479',
    500: '#cac339',
    950: '#000000',
  },
}
SCSS
$custom: #cac339;
$custom-light: #ded479;
$custom-dark: #000000;
JSON
{
  "hex": "#cac339",
  "rgb": {
    "r": 202,
    "g": 195,
    "b": 57
  },
  "hsl": {
    "h": 57.103,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.79902,
    "c": 0.15236,
    "h": 106.4
  },
  "luminance": 0.51882
}

Semantic roles & 50–950 ramp

primary
#CAC339
secondary
#323575
accent
#4EE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC339

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

Preview Lab → · Contrast checker → · Palette generator →

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