#B9AB2A#B9AB2A

#B9AB2A is a light, vivid yellow. Relative luminance 0.396; OKLCH L 73.1% C 0.141 H 102.9°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#B9AB2A
RGBrgb(185, 171, 42)
HSLhsl(54, 63%, 45%)
HSVhsv(54, 77%, 73%)
CMYKcmyk(0%, 7.6%, 77.3%, 27.5%)
CIE-LABlab(69.19, -8.85, 63.14)
CIE-LCHlch(69.19, 63.76, 97.98°)
OKLaboklab(73.14% -0.0314 0.1378)
OKLCHoklch(73.14% 0.141 102.9)
XYZxyz(34.9900, 39.6088, 7.9922)
Luminance0.3961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AB2A #2A38B9
analogous
#B9642A #B9AB2A #80B92A
triadic
#B9AB2A #2AB9AB #AB2AB9
tetradic
#B9AB2A #2AB964 #2A38B9 #B92A80
square
#B9AB2A #2AB964 #2A38B9 #B92A80
split-complementary
#B9AB2A #2A80B9 #642AB9
monochromatic
#554F13 #877D1F #B9AB2A #D6C84A #E1D77C

Accessibility & contrast

On white

2.35
#B9AB2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#B9AB2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9AB2A
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9AB2A#FFFFFF#000000##000000
##B9AB2A1.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA509
Deuteranopia (green-blind)
#BFAC34
Tritanopia (blue-blind)
#C79F93
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b9ab2a;
/* rgb */ color: rgb(185, 171, 42);
/* oklch */ color: oklch(73.1% 0.141 102.9);
Tailwind
colors: {
  custom: {
    50: '#d2c36e',
    500: '#b9ab2a',
    950: '#000000',
  },
}
SCSS
$custom: #b9ab2a;
$custom-light: #d2c36e;
$custom-dark: #000000;
JSON
{
  "hex": "#b9ab2a",
  "rgb": {
    "r": 185,
    "g": 171,
    "b": 42
  },
  "hsl": {
    "h": 54.126,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73138,
    "c": 0.14129,
    "h": 102.9
  },
  "luminance": 0.39607
}

Semantic roles & 50–950 ramp

primary
#B9AB2A
secondary
#757DCA
accent
#52E642
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9AB2A

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

Preview Lab → · Contrast checker → · Palette generator →

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