#CAB142#CAB142

#CAB142 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 76.2% C 0.131 H 96.4°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#CAB142
RGBrgb(202, 177, 66)
HSLhsl(49, 56%, 53%)
HSVhsv(49, 67%, 79%)
CMYKcmyk(0%, 12.4%, 67.3%, 20.8%)
CIE-LABlab(72.49, -3.44, 57.87)
CIE-LCHlch(72.49, 57.97, 93.41°)
OKLaboklab(76.17% -0.0145 0.1303)
OKLCHoklch(76.17% 0.131 96.4)
XYZxyz(41.0646, 44.3963, 11.5595)
Luminance0.4439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB142 #425BCA
analogous
#CA6D42 #CAB142 #9FCA42
triadic
#CAB142 #42CAB1 #B142CA
tetradic
#CAB142 #42CA6D #425BCA #CA429F
square
#CAB142 #42CA6D #425BCA #CA429F
split-complementary
#CAB142 #429FCA #6D42CA
monochromatic
#726320 #A28C2D #CAB142 #D7C572 #E5D8A2

Accessibility & contrast

On white

2.13
#CAB142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#CAB142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB142
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB142#FFFFFF#000000##000000
##CAB1421.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD34
Deuteranopia (green-blind)
#C9B548
Tritanopia (blue-blind)
#DAA49A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab142;
/* rgb */ color: rgb(202, 177, 66);
/* oklch */ color: oklch(76.2% 0.131 96.4);
Tailwind
colors: {
  custom: {
    50: '#dec87c',
    500: '#cab142',
    950: '#000000',
  },
}
SCSS
$custom: #cab142;
$custom-light: #dec87c;
$custom-dark: #000000;
JSON
{
  "hex": "#cab142",
  "rgb": {
    "r": 202,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 48.971,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.76174,
    "c": 0.13115,
    "h": 96.4
  },
  "luminance": 0.44394
}

Semantic roles & 50–950 ramp

primary
#CAB142
secondary
#96A1D1
accent
#64DF48
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB142

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

Preview Lab → · Contrast checker → · Palette generator →

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