#CAB232#CAB232

#CAB232 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 76.3% C 0.142 H 98.1°. Best body text is #000000 at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#CAB232
RGBrgb(202, 178, 50)
HSLhsl(51, 60%, 49%)
HSVhsv(51, 75%, 79%)
CMYKcmyk(0%, 11.9%, 75.2%, 20.8%)
CIE-LABlab(72.65, -4.75, 64.20)
CIE-LCHlch(72.65, 64.37, 94.24°)
OKLaboklab(76.26% -0.02 0.1408)
OKLCHoklch(76.26% 0.142 98.1)
XYZxyz(40.8553, 44.6297, 9.4794)
Luminance0.4463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB232 #324ACA
analogous
#CA6632 #CAB232 #96CA32
triadic
#CAB232 #32CAB2 #B232CA
tetradic
#CAB232 #32CA66 #324ACA #CA3296
square
#CAB232 #32CA66 #324ACA #CA3296
split-complementary
#CAB232 #3296CA #6632CA
monochromatic
#685C1A #998726 #CAB232 #D8C561 #E4D792

Accessibility & contrast

On white

2.12
#CAB232 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.93
#CAB232 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB232
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB232#FFFFFF#000000##000000
##CAB2321.002.129.939.93
#FFFFFF2.121.0021.0021.00
#0000009.9321.001.001.00
##0000009.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE19
Deuteranopia (green-blind)
#CAB63B
Tritanopia (blue-blind)
#DAA499
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab232;
/* rgb */ color: rgb(202, 178, 50);
/* oklch */ color: oklch(76.3% 0.142 98.1);
Tailwind
colors: {
  custom: {
    50: '#dec873',
    500: '#cab232',
    950: '#000000',
  },
}
SCSS
$custom: #cab232;
$custom-light: #dec873;
$custom-dark: #000000;
JSON
{
  "hex": "#cab232",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 50
  },
  "hsl": {
    "h": 50.526,
    "s": 60.317,
    "l": 49.412
  },
  "oklch": {
    "l": 0.76262,
    "c": 0.14224,
    "h": 98.1
  },
  "luminance": 0.44628
}

Semantic roles & 50–950 ramp

primary
#CAB232
secondary
#8994CF
accent
#5DE344
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB232

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

Preview Lab → · Contrast checker → · Palette generator →

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