#B5AB31#B5AB31

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

Color values

HEX#B5AB31
RGBrgb(181, 171, 49)
HSLhsl(55, 57%, 45%)
HSVhsv(55, 73%, 71%)
CMYKcmyk(0%, 5.5%, 72.9%, 29%)
CIE-LABlab(68.88, -10.30, 60.31)
CIE-LCHlch(68.88, 61.18, 99.69°)
OKLaboklab(72.82% -0.0346 0.1332)
OKLCHoklch(72.82% 0.138 104.6)
XYZxyz(34.1748, 39.1727, 8.6661)
Luminance0.3917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB31 #313BB5
analogous
#B56931 #B5AB31 #7DB531
triadic
#B5AB31 #31B5AB #AB31B5
tetradic
#B5AB31 #31B569 #313BB5 #B5317D
square
#B5AB31 #31B569 #313BB5 #B5317D
split-complementary
#B5AB31 #317DB5 #6931B5
monochromatic
#555017 #857D24 #B5AB31 #D0C753 #DDD783

Accessibility & contrast

On white

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

On black

8.83
#B5AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AB31
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AB31#FFFFFF#000000##000000
##B5AB311.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5ab31;
/* rgb */ color: rgb(181, 171, 49);
/* oklch */ color: oklch(72.8% 0.138 104.6);
Tailwind
colors: {
  custom: {
    50: '#cfc372',
    500: '#b5ab31',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab31;
$custom-light: #cfc372;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab31",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 55.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72816,
    "c": 0.13765,
    "h": 104.6
  },
  "luminance": 0.39171
}

Semantic roles & 50–950 ramp

primary
#B5AB31
secondary
#7B81C7
accent
#53E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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