#CAAB42#CAAB42

#CAAB42 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.9% C 0.127 H 92.5°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#CAAB42
RGBrgb(202, 171, 66)
HSLhsl(46, 56%, 53%)
HSVhsv(46, 67%, 79%)
CMYKcmyk(0%, 15.3%, 67.3%, 20.8%)
CIE-LABlab(70.92, -0.28, 56.24)
CIE-LCHlch(70.92, 56.24, 90.28°)
OKLaboklab(74.93% -0.0055 0.1269)
OKLCHoklch(74.93% 0.127 92.5)
XYZxyz(39.9054, 42.0779, 11.1732)
Luminance0.4208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAAB42 #4261CA
analogous
#CA6742 #CAAB42 #A5CA42
triadic
#CAAB42 #42CAAB #AB42CA
tetradic
#CAAB42 #42CA67 #4261CA #CA42A5
square
#CAAB42 #42CA67 #4261CA #CA42A5
split-complementary
#CAAB42 #42A5CA #6742CA
monochromatic
#725F20 #A2872D #CAAB42 #D7C072 #E5D5A2

Accessibility & contrast

On white

2.23
#CAAB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#CAAB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAAB42
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAAB42#FFFFFF#000000##000000
##CAAB421.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA835
Deuteranopia (green-blind)
#C4B147
Tritanopia (blue-blind)
#DA9E95
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #caab42;
/* rgb */ color: rgb(202, 171, 66);
/* oklch */ color: oklch(74.9% 0.127 92.5);
Tailwind
colors: {
  custom: {
    50: '#dec37c',
    500: '#caab42',
    950: '#000000',
  },
}
SCSS
$custom: #caab42;
$custom-light: #dec37c;
$custom-dark: #000000;
JSON
{
  "hex": "#caab42",
  "rgb": {
    "r": 202,
    "g": 171,
    "b": 66
  },
  "hsl": {
    "h": 46.324,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.74934,
    "c": 0.12699,
    "h": 92.5
  },
  "luminance": 0.42076
}

Semantic roles & 50–950 ramp

primary
#CAAB42
secondary
#96A4D1
accent
#6BDF48
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CAAB42

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

Preview Lab → · Contrast checker → · Palette generator →

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