#B5AB41#B5AB41

#B5AB41 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.9% C 0.126 H 103.9°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#B5AB41
RGBrgb(181, 171, 65)
HSLhsl(55, 47%, 48%)
HSVhsv(55, 64%, 71%)
CMYKcmyk(0%, 5.5%, 64.1%, 29%)
CIE-LABlab(68.99, -9.42, 54.04)
CIE-LCHlch(68.99, 54.86, 99.89°)
OKLaboklab(72.95% -0.0304 0.1227)
OKLCHoklch(72.95% 0.126 103.9)
XYZxyz(34.5744, 39.3325, 10.7707)
Luminance0.3933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB41 #414BB5
analogous
#B57141 #B5AB41 #85B541
triadic
#B5AB41 #41B5AB #AB41B5
tetradic
#B5AB41 #41B571 #414BB5 #B54185
square
#B5AB41 #41B571 #414BB5 #B54185
split-complementary
#B5AB41 #4185B5 #7141B5
monochromatic
#5B5621 #888031 #B5AB41 #C9C16A #DAD497

Accessibility & contrast

On white

2.37
#B5AB41 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#B5AB41 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AB41
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AB41#FFFFFF#000000##000000
##B5AB411.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA534
Deuteranopia (green-blind)
#BDAB47
Tritanopia (blue-blind)
#C2A095
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b5ab41;
/* rgb */ color: rgb(181, 171, 65);
/* oklch */ color: oklch(72.9% 0.126 103.9);
Tailwind
colors: {
  custom: {
    50: '#cec37b',
    500: '#b5ab41',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab41;
$custom-light: #cec37b;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab41",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 65
  },
  "hsl": {
    "h": 54.828,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.72945,
    "c": 0.12641,
    "h": 103.9
  },
  "luminance": 0.39331
}

Semantic roles & 50–950 ramp

primary
#B5AB41
secondary
#8C91C5
accent
#5DD751
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B5AB41

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

Preview Lab → · Contrast checker → · Palette generator →

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