#B5AB2A#B5AB2A

#B5AB2A is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.8% C 0.142 H 104.8°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#B5AB2A
RGBrgb(181, 171, 42)
HSLhsl(56, 62%, 44%)
HSVhsv(56, 77%, 71%)
CMYKcmyk(0%, 5.5%, 76.8%, 29%)
CIE-LABlab(68.84, -10.61, 62.69)
CIE-LCHlch(68.84, 63.58, 99.60°)
OKLaboklab(72.77% -0.0361 0.1369)
OKLCHoklch(72.77% 0.142 104.8)
XYZxyz(34.0384, 39.1181, 7.9476)
Luminance0.3912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB2A #2A34B5
analogous
#B5652A #B5AB2A #79B52A
triadic
#B5AB2A #2AB5AB #AB2AB5
tetradic
#B5AB2A #2AB565 #2A34B5 #B52A79
square
#B5AB2A #2AB565 #2A34B5 #B52A79
split-complementary
#B5AB2A #2A79B5 #652AB5
monochromatic
#524D13 #837C1E #B5AB2A #D4CA48 #E0D979

Accessibility & contrast

On white

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

On black

8.82
#B5AB2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AB2A
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AB2A#FFFFFF#000000##000000
##B5AB2A1.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5ab2a;
/* rgb */ color: rgb(181, 171, 42);
/* oklch */ color: oklch(72.8% 0.142 104.8);
Tailwind
colors: {
  custom: {
    50: '#cfc36e',
    500: '#b5ab2a',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab2a;
$custom-light: #cfc36e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab2a",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 42
  },
  "hsl": {
    "h": 55.683,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.72772,
    "c": 0.14164,
    "h": 104.8
  },
  "luminance": 0.39117
}

Semantic roles & 50–950 ramp

primary
#B5AB2A
secondary
#7379C8
accent
#4EE542
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AB2A

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

Preview Lab → · Contrast checker → · Palette generator →

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