#CAB339#CAB339

#CAB339 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.5% C 0.139 H 98.2°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#CAB339
RGBrgb(202, 179, 57)
HSLhsl(50, 58%, 51%)
HSVhsv(50, 72%, 79%)
CMYKcmyk(0%, 11.4%, 71.8%, 20.8%)
CIE-LABlab(72.95, -4.96, 61.94)
CIE-LCHlch(72.95, 62.14, 94.58°)
OKLaboklab(76.52% -0.0199 0.1374)
OKLCHoklch(76.52% 0.139 98.2)
XYZxyz(41.2177, 45.0942, 10.4031)
Luminance0.4509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB339 #3950CA
analogous
#CA6A39 #CAB339 #98CA39
triadic
#CAB339 #39CAB3 #B339CA
tetradic
#CAB339 #39CA6A #3950CA #CA3998
square
#CAB339 #39CA6A #3950CA #CA3998
split-complementary
#CAB339 #3998CA #6A39CA
monochromatic
#6C5F1D #9C8A2A #CAB339 #D7C669 #E4D89A

Accessibility & contrast

On white

2.10
#CAB339 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#CAB339 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB339
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB339#FFFFFF#000000##000000
##CAB3391.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF26
Deuteranopia (green-blind)
#CBB640
Tritanopia (blue-blind)
#DAA69B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab339;
/* rgb */ color: rgb(202, 179, 57);
/* oklch */ color: oklch(76.5% 0.139 98.2);
Tailwind
colors: {
  custom: {
    50: '#dec977',
    500: '#cab339',
    950: '#000000',
  },
}
SCSS
$custom: #cab339;
$custom-light: #dec977;
$custom-dark: #000000;
JSON
{
  "hex": "#cab339",
  "rgb": {
    "r": 202,
    "g": 179,
    "b": 57
  },
  "hsl": {
    "h": 50.483,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.76518,
    "c": 0.13879,
    "h": 98.2
  },
  "luminance": 0.45092
}

Semantic roles & 50–950 ramp

primary
#CAB339
secondary
#8F99D0
accent
#5FE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB339

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

Preview Lab → · Contrast checker → · Palette generator →

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