#CAC342#CAC342

#CAC342 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.0% C 0.147 H 106.2°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#CAC342
RGBrgb(202, 195, 66)
HSLhsl(57, 56%, 53%)
HSVhsv(57, 67%, 79%)
CMYKcmyk(0%, 3.5%, 67.3%, 20.8%)
CIE-LABlab(77.27, -12.74, 62.77)
CIE-LCHlch(77.27, 64.05, 101.47°)
OKLaboklab(79.97% -0.0409 0.1407)
OKLCHoklch(79.97% 0.147 106.2)
XYZxyz(44.8573, 51.9817, 12.8238)
Luminance0.5198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC342 #4249CA
analogous
#CA7F42 #CAC342 #8DCA42
triadic
#CAC342 #42CAC3 #C342CA
tetradic
#CAC342 #42CA7F #4249CA #CA428D
square
#CAC342 #42CA7F #4249CA #CA428D
split-complementary
#CAC342 #428DCA #7F42CA
monochromatic
#726E20 #A29C2D #CAC342 #D7D272 #E5E1A2

Accessibility & contrast

On white

1.84
#CAC342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.40
#CAC342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC342
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC342#FFFFFF#000000##000000
##CAC3421.001.8411.4011.40
#FFFFFF1.841.0021.0021.00
#00000011.4021.001.001.00
##00000011.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2F
Deuteranopia (green-blind)
#D6C14A
Tritanopia (blue-blind)
#D8B6A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cac342;
/* rgb */ color: rgb(202, 195, 66);
/* oklch */ color: oklch(80.0% 0.147 106.2);
Tailwind
colors: {
  custom: {
    50: '#ddd47e',
    500: '#cac342',
    950: '#000000',
  },
}
SCSS
$custom: #cac342;
$custom-light: #ddd47e;
$custom-dark: #000000;
JSON
{
  "hex": "#cac342",
  "rgb": {
    "r": 202,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 56.912,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.79967,
    "c": 0.14653,
    "h": 106.2
  },
  "luminance": 0.5198
}

Semantic roles & 50–950 ramp

primary
#CAC342
secondary
#35397B
accent
#50DF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC342

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

Preview Lab → · Contrast checker → · Palette generator →

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