#CAB540#CAB540

#CAB540 is a light, vivid yellow. Relative luminance 0.460; OKLCH L 77.0% C 0.136 H 98.9°. Best body text is #000000 at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#CAB540
RGBrgb(202, 181, 64)
HSLhsl(51, 57%, 52%)
HSVhsv(51, 68%, 79%)
CMYKcmyk(0%, 10.4%, 68.3%, 20.8%)
CIE-LABlab(73.53, -5.65, 59.76)
CIE-LCHlch(73.53, 60.03, 95.40°)
OKLaboklab(76.99% -0.0211 0.134)
OKLCHoklch(76.99% 0.136 98.9)
XYZxyz(41.8083, 45.9764, 11.5216)
Luminance0.4597 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB540 #4055CA
analogous
#CA7040 #CAB540 #9ACA40
triadic
#CAB540 #40CAB5 #B540CA
tetradic
#CAB540 #40CA70 #4055CA #CA409A
square
#CAB540 #40CA70 #4055CA #CA409A
split-complementary
#CAB540 #409ACA #7040CA
monochromatic
#70641F #A08F2C #CAB540 #D7C870 #E5DAA0

Accessibility & contrast

On white

2.06
#CAB540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.19
#CAB540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB540
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB540#FFFFFF#000000##000000
##CAB5401.002.0610.1910.19
#FFFFFF2.061.0021.0021.00
#00000010.1921.001.001.00
##00000010.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B030
Deuteranopia (green-blind)
#CCB847
Tritanopia (blue-blind)
#D9A89D
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab540;
/* rgb */ color: rgb(202, 181, 64);
/* oklch */ color: oklch(77.0% 0.136 98.9);
Tailwind
colors: {
  custom: {
    50: '#deca7b',
    500: '#cab540',
    950: '#000000',
  },
}
SCSS
$custom: #cab540;
$custom-light: #deca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#cab540",
  "rgb": {
    "r": 202,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 50.87,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.76991,
    "c": 0.13564,
    "h": 98.9
  },
  "luminance": 0.45974
}

Semantic roles & 50–950 ramp

primary
#CAB540
secondary
#959ED1
accent
#5FE048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB540

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

Preview Lab → · Contrast checker → · Palette generator →

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