#CAB042#CAB042

#CAB042 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 76.0% C 0.130 H 95.7°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#CAB042
RGBrgb(202, 176, 66)
HSLhsl(49, 56%, 53%)
HSVhsv(49, 67%, 79%)
CMYKcmyk(0%, 12.9%, 67.3%, 20.8%)
CIE-LABlab(72.23, -2.92, 57.60)
CIE-LCHlch(72.23, 57.67, 92.90°)
OKLaboklab(75.97% -0.013 0.1298)
OKLCHoklch(75.97% 0.13 95.7)
XYZxyz(40.8678, 44.0027, 11.4939)
Luminance0.4400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB042 #425CCA
analogous
#CA6C42 #CAB042 #A0CA42
triadic
#CAB042 #42CAB0 #B042CA
tetradic
#CAB042 #42CA6C #425CCA #CA42A0
square
#CAB042 #42CA6C #425CCA #CA42A0
split-complementary
#CAB042 #42A0CA #6C42CA
monochromatic
#726220 #A28B2D #CAB042 #D7C472 #E5D8A2

Accessibility & contrast

On white

2.14
#CAB042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#CAB042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB042
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB042#FFFFFF#000000##000000
##CAB0421.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC34
Deuteranopia (green-blind)
#C8B548
Tritanopia (blue-blind)
#DAA399
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cab042;
/* rgb */ color: rgb(202, 176, 66);
/* oklch */ color: oklch(76.0% 0.130 95.7);
Tailwind
colors: {
  custom: {
    50: '#dec77c',
    500: '#cab042',
    950: '#000000',
  },
}
SCSS
$custom: #cab042;
$custom-light: #dec77c;
$custom-dark: #000000;
JSON
{
  "hex": "#cab042",
  "rgb": {
    "r": 202,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 48.529,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.75966,
    "c": 0.13041,
    "h": 95.7
  },
  "luminance": 0.44001
}

Semantic roles & 50–950 ramp

primary
#CAB042
secondary
#96A2D1
accent
#65DF48
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB042

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

Preview Lab → · Contrast checker → · Palette generator →

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