#B5AB33#B5AB33

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

Color values

HEX#B5AB33
RGBrgb(181, 171, 51)
HSLhsl(55, 56%, 45%)
HSVhsv(55, 72%, 71%)
CMYKcmyk(0%, 5.5%, 71.8%, 29%)
CIE-LABlab(68.89, -10.21, 59.58)
CIE-LCHlch(68.89, 60.45, 99.72°)
OKLaboklab(72.83% -0.0342 0.1321)
OKLCHoklch(72.83% 0.136 104.5)
XYZxyz(34.2179, 39.1899, 8.8933)
Luminance0.3919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB33 #333DB5
analogous
#B56A33 #B5AB33 #7EB533
triadic
#B5AB33 #33B5AB #AB33B5
tetradic
#B5AB33 #33B56A #333DB5 #B5337E
square
#B5AB33 #33B56A #333DB5 #B5337E
split-complementary
#B5AB33 #337EB5 #6A33B5
monochromatic
#565118 #857E26 #B5AB33 #CFC656 #DDD686

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5AB33#FFFFFF#000000##000000
##B5AB331.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)
#BAA51F
Deuteranopia (green-blind)
#BEAB3B
Tritanopia (blue-blind)
#C39F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b5ab33;
/* rgb */ color: rgb(181, 171, 51);
/* oklch */ color: oklch(72.8% 0.136 104.5);
Tailwind
colors: {
  custom: {
    50: '#cfc373',
    500: '#b5ab33',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab33;
$custom-light: #cfc373;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab33",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 51
  },
  "hsl": {
    "h": 55.385,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.7283,
    "c": 0.1364,
    "h": 104.5
  },
  "luminance": 0.39189
}

Semantic roles & 50–950 ramp

primary
#B5AB33
secondary
#7D83C6
accent
#54DF48
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AB33

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

Preview Lab → · Contrast checker → · Palette generator →

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