#B5AB40#B5AB40

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

Color values

HEX#B5AB40
RGBrgb(181, 171, 64)
HSLhsl(55, 48%, 48%)
HSVhsv(55, 65%, 71%)
CMYKcmyk(0%, 5.5%, 64.6%, 29%)
CIE-LABlab(68.98, -9.48, 54.46)
CIE-LCHlch(68.98, 55.28, 99.88°)
OKLaboklab(72.94% -0.0307 0.1234)
OKLCHoklch(72.94% 0.127 104)
XYZxyz(34.5457, 39.3210, 10.6195)
Luminance0.3932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB40 #404AB5
analogous
#B57040 #B5AB40 #84B540
triadic
#B5AB40 #40B5AB #AB40B5
tetradic
#B5AB40 #40B570 #404AB5 #B54084
square
#B5AB40 #40B570 #404AB5 #B54084
split-complementary
#B5AB40 #4084B5 #7040B5
monochromatic
#5B5620 #888030 #B5AB40 #CAC168 #DAD496

Accessibility & contrast

On white

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

On black

8.86
#B5AB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AB40
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AB40#FFFFFF#000000##000000
##B5AB401.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5ab40;
/* rgb */ color: rgb(181, 171, 64);
/* oklch */ color: oklch(72.9% 0.127 104.0);
Tailwind
colors: {
  custom: {
    50: '#cec37a',
    500: '#b5ab40',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab40;
$custom-light: #cec37a;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab40",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 54.872,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.72936,
    "c": 0.12719,
    "h": 104
  },
  "luminance": 0.3932
}

Semantic roles & 50–950 ramp

primary
#B5AB40
secondary
#8B90C5
accent
#5CD750
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B5AB40

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

Preview Lab → · Contrast checker → · Palette generator →

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