#CAB949#CAB949

#CAB949 is a light, vivid yellow. Relative luminance 0.477; OKLCH L 77.9% C 0.132 H 100.7°. Best body text is #000000 at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#CAB949
RGBrgb(202, 185, 73)
HSLhsl(52, 55%, 54%)
HSVhsv(52, 64%, 79%)
CMYKcmyk(0%, 8.4%, 63.9%, 20.8%)
CIE-LABlab(74.66, -7.20, 57.18)
CIE-LCHlch(74.66, 57.64, 97.18°)
OKLaboklab(77.91% -0.0245 0.13)
OKLCHoklch(77.91% 0.132 100.7)
XYZxyz(42.9104, 47.7373, 13.2560)
Luminance0.4774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB949 #495ACA
analogous
#CA7949 #CAB949 #9BCA49
triadic
#CAB949 #49CAB9 #B949CA
tetradic
#CAB949 #49CA79 #495ACA #CA499B
square
#CAB949 #49CA79 #495ACA #CA499B
split-complementary
#CAB949 #499BCA #7949CA
monochromatic
#766B22 #A69630 #CAB949 #D8CB78 #E6DDA8

Accessibility & contrast

On white

1.99
#CAB949 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.55
#CAB949 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB949
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB949#FFFFFF#000000##000000
##CAB9491.001.9910.5510.55
#FFFFFF1.991.0021.0021.00
#00000010.5521.001.001.00
##00000010.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B43B
Deuteranopia (green-blind)
#CEBB4F
Tritanopia (blue-blind)
#D9ACA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cab949;
/* rgb */ color: rgb(202, 185, 73);
/* oklch */ color: oklch(77.9% 0.132 100.7);
Tailwind
colors: {
  custom: {
    50: '#ddcd81',
    500: '#cab949',
    950: '#000000',
  },
}
SCSS
$custom: #cab949;
$custom-light: #ddcd81;
$custom-dark: #000000;
JSON
{
  "hex": "#cab949",
  "rgb": {
    "r": 202,
    "g": 185,
    "b": 73
  },
  "hsl": {
    "h": 52.093,
    "s": 54.894,
    "l": 53.922
  },
  "oklch": {
    "l": 0.77909,
    "c": 0.13226,
    "h": 100.7
  },
  "luminance": 0.47736
}

Semantic roles & 50–950 ramp

primary
#CAB949
secondary
#9CA3D3
accent
#5DDE4A
background
#FEFCF8
surface
#FCF9EF
border
#D5D2CA
text
#15130B
muted
#84827C

Preview Lab

Preview with #CAB949

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

Preview Lab → · Contrast checker → · Palette generator →

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