#CAB939#CAB939

#CAB939 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.8% C 0.144 H 101.5°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#CAB939
RGBrgb(202, 185, 57)
HSLhsl(53, 58%, 51%)
HSVhsv(53, 72%, 79%)
CMYKcmyk(0%, 8.4%, 71.8%, 20.8%)
CIE-LABlab(74.54, -8.08, 63.49)
CIE-LCHlch(74.54, 64.00, 97.25°)
OKLaboklab(77.78% -0.0287 0.1406)
OKLCHoklch(77.78% 0.144 101.5)
XYZxyz(42.4465, 47.5518, 10.8127)
Luminance0.4755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB939 #394ACA
analogous
#CA7139 #CAB939 #92CA39
triadic
#CAB939 #39CAB9 #B939CA
tetradic
#CAB939 #39CA71 #394ACA #CA3992
square
#CAB939 #39CA71 #394ACA #CA3992
split-complementary
#CAB939 #3992CA #7139CA
monochromatic
#6C631D #9C8F2A #CAB939 #D7CA69 #E4DB9A

Accessibility & contrast

On white

2.00
#CAB939 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#CAB939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB939
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB939#FFFFFF#000000##000000
##CAB9391.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB324
Deuteranopia (green-blind)
#CFBA41
Tritanopia (blue-blind)
#D9ACA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cab939;
/* rgb */ color: rgb(202, 185, 57);
/* oklch */ color: oklch(77.8% 0.144 101.5);
Tailwind
colors: {
  custom: {
    50: '#decd78',
    500: '#cab939',
    950: '#000000',
  },
}
SCSS
$custom: #cab939;
$custom-light: #decd78;
$custom-dark: #000000;
JSON
{
  "hex": "#cab939",
  "rgb": {
    "r": 202,
    "g": 185,
    "b": 57
  },
  "hsl": {
    "h": 52.966,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.77778,
    "c": 0.14354,
    "h": 101.5
  },
  "luminance": 0.4755
}

Semantic roles & 50–950 ramp

primary
#CAB939
secondary
#8F97D0
accent
#59E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB939

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

Preview Lab → · Contrast checker → · Palette generator →

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