#CAB031#CAB031

#CAB031 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.8% C 0.141 H 97.0°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#CAB031
RGBrgb(202, 176, 49)
HSLhsl(50, 61%, 49%)
HSVhsv(50, 76%, 79%)
CMYKcmyk(0%, 12.9%, 75.7%, 20.8%)
CIE-LABlab(72.12, -3.75, 64.05)
CIE-LCHlch(72.12, 64.16, 93.35°)
OKLaboklab(75.84% -0.0173 0.1403)
OKLCHoklch(75.84% 0.141 97)
XYZxyz(40.4389, 43.8311, 9.2354)
Luminance0.4383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB031 #314BCA
analogous
#CA6431 #CAB031 #98CA31
triadic
#CAB031 #31CAB0 #B031CA
tetradic
#CAB031 #31CA64 #314BCA #CA3198
square
#CAB031 #31CA64 #314BCA #CA3198
split-complementary
#CAB031 #3198CA #6431CA
monochromatic
#675A19 #998525 #CAB031 #D8C460 #E4D691

Accessibility & contrast

On white

2.15
#CAB031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.77
#CAB031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB031
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB031#FFFFFF#000000##000000
##CAB0311.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC18
Deuteranopia (green-blind)
#C9B439
Tritanopia (blue-blind)
#DAA298
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cab031;
/* rgb */ color: rgb(202, 176, 49);
/* oklch */ color: oklch(75.8% 0.141 97.0);
Tailwind
colors: {
  custom: {
    50: '#dec773',
    500: '#cab031',
    950: '#000000',
  },
}
SCSS
$custom: #cab031;
$custom-light: #dec773;
$custom-dark: #000000;
JSON
{
  "hex": "#cab031",
  "rgb": {
    "r": 202,
    "g": 176,
    "b": 49
  },
  "hsl": {
    "h": 49.804,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.75838,
    "c": 0.14138,
    "h": 97
  },
  "luminance": 0.43829
}

Semantic roles & 50–950 ramp

primary
#CAB031
secondary
#8894CF
accent
#5FE444
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB031

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

Preview Lab → · Contrast checker → · Palette generator →

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