#CAC242#CAC242

#CAC242 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.8% C 0.146 H 105.8°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#CAC242
RGBrgb(202, 194, 66)
HSLhsl(56, 56%, 53%)
HSVhsv(56, 67%, 79%)
CMYKcmyk(0%, 4%, 67.3%, 20.8%)
CIE-LABlab(77.00, -12.23, 62.50)
CIE-LCHlch(77.00, 63.69, 101.07°)
OKLaboklab(79.75% -0.0395 0.1401)
OKLCHoklch(79.75% 0.146 105.8)
XYZxyz(44.6340, 51.5351, 12.7493)
Luminance0.5153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC242 #424ACA
analogous
#CA7E42 #CAC242 #8ECA42
triadic
#CAC242 #42CAC2 #C242CA
tetradic
#CAC242 #42CA7E #424ACA #CA428E
square
#CAC242 #42CA7E #424ACA #CA428E
split-complementary
#CAC242 #428ECA #7E42CA
monochromatic
#726D20 #A29B2D #CAC242 #D7D172 #E5E1A2

Accessibility & contrast

On white

1.86
#CAC242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.31
#CAC242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC242
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC242#FFFFFF#000000##000000
##CAC2421.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB30
Deuteranopia (green-blind)
#D5C14A
Tritanopia (blue-blind)
#D9B5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac242;
/* rgb */ color: rgb(202, 194, 66);
/* oklch */ color: oklch(79.8% 0.146 105.8);
Tailwind
colors: {
  custom: {
    50: '#ddd47d',
    500: '#cac242',
    950: '#000000',
  },
}
SCSS
$custom: #cac242;
$custom-light: #ddd47d;
$custom-dark: #000000;
JSON
{
  "hex": "#cac242",
  "rgb": {
    "r": 202,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 56.471,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.79754,
    "c": 0.14559,
    "h": 105.8
  },
  "luminance": 0.51533
}

Semantic roles & 50–950 ramp

primary
#CAC242
secondary
#353A7B
accent
#51DF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC242

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

Preview Lab → · Contrast checker → · Palette generator →

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