#B5AB36#B5AB36

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

Color values

HEX#B5AB36
RGBrgb(181, 171, 54)
HSLhsl(55, 54%, 46%)
HSVhsv(55, 70%, 71%)
CMYKcmyk(0%, 5.5%, 70.2%, 29%)
CIE-LABlab(68.91, -10.05, 58.46)
CIE-LCHlch(68.91, 59.32, 99.76°)
OKLaboklab(72.85% -0.0334 0.1302)
OKLCHoklch(72.85% 0.134 104.4)
XYZxyz(34.2862, 39.2172, 9.2530)
Luminance0.3922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB36 #3640B5
analogous
#B56B36 #B5AB36 #7FB536
triadic
#B5AB36 #36B5AB #AB36B5
tetradic
#B5AB36 #36B56B #3640B5 #B5367F
square
#B5AB36 #36B56B #3640B5 #B5367F
split-complementary
#B5AB36 #367FB5 #6B36B5
monochromatic
#57521A #867E28 #B5AB36 #CEC55A #DCD589

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5AB36#FFFFFF#000000##000000
##B5AB361.002.378.848.84
#FFFFFF2.371.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA524
Deuteranopia (green-blind)
#BDAB3E
Tritanopia (blue-blind)
#C29F94
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b5ab36;
/* rgb */ color: rgb(181, 171, 54);
/* oklch */ color: oklch(72.9% 0.134 104.4);
Tailwind
colors: {
  custom: {
    50: '#cfc374',
    500: '#b5ab36',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab36;
$custom-light: #cfc374;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab36",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 54
  },
  "hsl": {
    "h": 55.276,
    "s": 54.043,
    "l": 46.078
  },
  "oklch": {
    "l": 0.72852,
    "c": 0.13444,
    "h": 104.4
  },
  "luminance": 0.39216
}

Semantic roles & 50–950 ramp

primary
#B5AB36
secondary
#8186C6
accent
#56DD4A
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B5AB36

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

Preview Lab → · Contrast checker → · Palette generator →

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