#CAB946#CAB946

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

Color values

HEX#CAB946
RGBrgb(202, 185, 70)
HSLhsl(52, 55%, 53%)
HSVhsv(52, 65%, 79%)
CMYKcmyk(0%, 8.4%, 65.3%, 20.8%)
CIE-LABlab(74.63, -7.38, 58.43)
CIE-LCHlch(74.63, 58.90, 97.20°)
OKLaboklab(77.88% -0.0253 0.1322)
OKLCHoklch(77.88% 0.135 100.9)
XYZxyz(42.8134, 47.6985, 12.7447)
Luminance0.4770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB946 #4657CA
analogous
#CA7746 #CAB946 #99CA46
triadic
#CAB946 #46CAB9 #B946CA
tetradic
#CAB946 #46CA77 #4657CA #CA4699
square
#CAB946 #46CA77 #4657CA #CA4699
split-complementary
#CAB946 #4699CA #7746CA
monochromatic
#746A21 #A4952F #CAB946 #D8CB76 #E5DDA5

Accessibility & contrast

On white

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

On black

10.54
#CAB946 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB946
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB946#FFFFFF#000000##000000
##CAB9461.001.9910.5410.54
#FFFFFF1.991.0021.0021.00
#00000010.5421.001.001.00
##00000010.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cab946;
/* rgb */ color: rgb(202, 185, 70);
/* oklch */ color: oklch(77.9% 0.135 100.9);
Tailwind
colors: {
  custom: {
    50: '#ddcd7f',
    500: '#cab946',
    950: '#000000',
  },
}
SCSS
$custom: #cab946;
$custom-light: #ddcd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#cab946",
  "rgb": {
    "r": 202,
    "g": 185,
    "b": 70
  },
  "hsl": {
    "h": 52.273,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.77881,
    "c": 0.13458,
    "h": 100.9
  },
  "luminance": 0.47697
}

Semantic roles & 50–950 ramp

primary
#CAB946
secondary
#9AA1D2
accent
#5CDF49
background
#FEFCF8
surface
#FCF9EF
border
#D5D2CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB946

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

Preview Lab → · Contrast checker → · Palette generator →

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