#B9AB3A#B9AB3A

#B9AB3A is a light, vivid yellow. Relative luminance 0.397; OKLCH L 73.2% C 0.131 H 102.2°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#B9AB3A
RGBrgb(185, 171, 58)
HSLhsl(53, 52%, 48%)
HSVhsv(53, 69%, 73%)
CMYKcmyk(0%, 7.6%, 68.6%, 27.5%)
CIE-LABlab(69.29, -8.10, 57.38)
CIE-LCHlch(69.29, 57.95, 98.04°)
OKLaboklab(73.25% -0.0277 0.1285)
OKLCHoklch(73.25% 0.131 102.2)
XYZxyz(35.3357, 39.7471, 9.8128)
Luminance0.3975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AB3A #3A48B9
analogous
#B96C3A #B9AB3A #87B93A
triadic
#B9AB3A #3AB9AB #AB3AB9
tetradic
#B9AB3A #3AB96C #3A48B9 #B93A87
square
#B9AB3A #3AB96C #3A48B9 #B93A87
split-complementary
#B9AB3A #3A87B9 #6C3AB9
monochromatic
#5C551D #8A802B #B9AB3A #CEC262 #DCD491

Accessibility & contrast

On white

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

On black

8.95
#B9AB3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9AB3A
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9AB3A#FFFFFF#000000##000000
##B9AB3A1.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA62A
Deuteranopia (green-blind)
#BFAC41
Tritanopia (blue-blind)
#C79F94
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b9ab3a;
/* rgb */ color: rgb(185, 171, 58);
/* oklch */ color: oklch(73.2% 0.131 102.2);
Tailwind
colors: {
  custom: {
    50: '#d1c377',
    500: '#b9ab3a',
    950: '#000000',
  },
}
SCSS
$custom: #b9ab3a;
$custom-light: #d1c377;
$custom-dark: #000000;
JSON
{
  "hex": "#b9ab3a",
  "rgb": {
    "r": 185,
    "g": 171,
    "b": 58
  },
  "hsl": {
    "h": 53.386,
    "s": 52.263,
    "l": 47.647
  },
  "oklch": {
    "l": 0.73248,
    "c": 0.13145,
    "h": 102.2
  },
  "luminance": 0.39746
}

Semantic roles & 50–950 ramp

primary
#B9AB3A
secondary
#878EC7
accent
#5CDC4C
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B9AB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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