#CAB342#CAB342

#CAB342 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.6% C 0.133 H 97.6°. Best body text is #000000 at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#CAB342
RGBrgb(202, 179, 66)
HSLhsl(50, 56%, 53%)
HSVhsv(50, 67%, 79%)
CMYKcmyk(0%, 11.4%, 67.3%, 20.8%)
CIE-LABlab(73.02, -4.49, 58.42)
CIE-LCHlch(73.02, 58.59, 94.40°)
OKLaboklab(76.59% -0.0175 0.1315)
OKLCHoklch(76.59% 0.133 97.6)
XYZxyz(41.4625, 45.1921, 11.6922)
Luminance0.4519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB342 #4259CA
analogous
#CA6F42 #CAB342 #9DCA42
triadic
#CAB342 #42CAB3 #B342CA
tetradic
#CAB342 #42CA6F #4259CA #CA429D
square
#CAB342 #42CA6F #4259CA #CA429D
split-complementary
#CAB342 #429DCA #6F42CA
monochromatic
#726420 #A28E2D #CAB342 #D7C672 #E5D9A2

Accessibility & contrast

On white

2.09
#CAB342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.04
#CAB342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB342
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB342#FFFFFF#000000##000000
##CAB3421.002.0910.0410.04
#FFFFFF2.091.0021.0021.00
#00000010.0421.001.001.00
##00000010.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF33
Deuteranopia (green-blind)
#CAB748
Tritanopia (blue-blind)
#D9A69C
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab342;
/* rgb */ color: rgb(202, 179, 66);
/* oklch */ color: oklch(76.6% 0.133 97.6);
Tailwind
colors: {
  custom: {
    50: '#dec97c',
    500: '#cab342',
    950: '#000000',
  },
}
SCSS
$custom: #cab342;
$custom-light: #dec97c;
$custom-dark: #000000;
JSON
{
  "hex": "#cab342",
  "rgb": {
    "r": 202,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 49.853,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.7659,
    "c": 0.13265,
    "h": 97.6
  },
  "luminance": 0.4519
}

Semantic roles & 50–950 ramp

primary
#CAB342
secondary
#96A0D1
accent
#62DF48
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB342

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

Preview Lab → · Contrast checker → · Palette generator →

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