#B5AB32#B5AB32

#B5AB32 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.8% C 0.137 H 104.5°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#B5AB32
RGBrgb(181, 171, 50)
HSLhsl(55, 57%, 45%)
HSVhsv(55, 72%, 71%)
CMYKcmyk(0%, 5.5%, 72.4%, 29%)
CIE-LABlab(68.88, -10.25, 59.95)
CIE-LCHlch(68.88, 60.82, 99.71°)
OKLaboklab(72.82% -0.0344 0.1326)
OKLCHoklch(72.82% 0.137 104.5)
XYZxyz(34.1961, 39.1812, 8.7784)
Luminance0.3918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB32 #323CB5
analogous
#B56A32 #B5AB32 #7DB532
triadic
#B5AB32 #32B5AB #AB32B5
tetradic
#B5AB32 #32B56A #323CB5 #B5327D
square
#B5AB32 #32B56A #323CB5 #B5327D
split-complementary
#B5AB32 #327DB5 #6A32B5
monochromatic
#555018 #857E25 #B5AB32 #D0C654 #DDD684

Accessibility & contrast

On white

2.38
#B5AB32 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#B5AB32 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AB32
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AB32#FFFFFF#000000##000000
##B5AB321.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51D
Deuteranopia (green-blind)
#BEAB3A
Tritanopia (blue-blind)
#C39F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b5ab32;
/* rgb */ color: rgb(181, 171, 50);
/* oklch */ color: oklch(72.8% 0.137 104.5);
Tailwind
colors: {
  custom: {
    50: '#cfc372',
    500: '#b5ab32',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab32;
$custom-light: #cfc372;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab32",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 50
  },
  "hsl": {
    "h": 55.42,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72823,
    "c": 0.13703,
    "h": 104.5
  },
  "luminance": 0.3918
}

Semantic roles & 50–950 ramp

primary
#B5AB32
secondary
#7C82C7
accent
#53E048
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AB32

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

Preview Lab → · Contrast checker → · Palette generator →

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