#CAC542#CAC542

#CAC542 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.4% C 0.148 H 107.2°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#CAC542
RGBrgb(202, 197, 66)
HSLhsl(58, 56%, 53%)
HSVhsv(58, 67%, 79%)
CMYKcmyk(0%, 2.5%, 67.3%, 20.8%)
CIE-LABlab(77.81, -13.75, 63.32)
CIE-LCHlch(77.81, 64.79, 102.25°)
OKLaboklab(80.4% -0.0438 0.1418)
OKLCHoklch(80.4% 0.148 107.2)
XYZxyz(45.3084, 52.8839, 12.9742)
Luminance0.5288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC542 #4247CA
analogous
#CA8142 #CAC542 #8BCA42
triadic
#CAC542 #42CAC5 #C542CA
tetradic
#CAC542 #42CA81 #4247CA #CA428B
square
#CAC542 #42CA81 #4247CA #CA428B
split-complementary
#CAC542 #428BCA #8142CA
monochromatic
#726F20 #A29D2D #CAC542 #D7D472 #E5E2A2

Accessibility & contrast

On white

1.81
#CAC542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.58
#CAC542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC542
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC542#FFFFFF#000000##000000
##CAC5421.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE2F
Deuteranopia (green-blind)
#D8C34B
Tritanopia (blue-blind)
#D8B8AB
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cac542;
/* rgb */ color: rgb(202, 197, 66);
/* oklch */ color: oklch(80.4% 0.148 107.2);
Tailwind
colors: {
  custom: {
    50: '#ddd67e',
    500: '#cac542',
    950: '#000000',
  },
}
SCSS
$custom: #cac542;
$custom-light: #ddd67e;
$custom-dark: #000000;
JSON
{
  "hex": "#cac542",
  "rgb": {
    "r": 202,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 57.794,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.80395,
    "c": 0.14845,
    "h": 107.2
  },
  "luminance": 0.52882
}

Semantic roles & 50–950 ramp

primary
#CAC542
secondary
#35387B
accent
#4EDF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC542

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

Preview Lab → · Contrast checker → · Palette generator →

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