#B9AB37#B9AB37

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

Color values

HEX#B9AB37
RGBrgb(185, 171, 55)
HSLhsl(54, 54%, 47%)
HSVhsv(54, 70%, 73%)
CMYKcmyk(0%, 7.6%, 70.3%, 27.5%)
CIE-LABlab(69.27, -8.26, 58.55)
CIE-LCHlch(69.27, 59.13, 98.03°)
OKLaboklab(73.22% -0.0285 0.1304)
OKLCHoklch(73.22% 0.134 102.3)
XYZxyz(35.2616, 39.7174, 9.4225)
Luminance0.3972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AB37 #3745B9
analogous
#B96A37 #B9AB37 #86B937
triadic
#B9AB37 #37B9AB #AB37B9
tetradic
#B9AB37 #37B96A #3745B9 #B93786
square
#B9AB37 #37B96A #3745B9 #B93786
split-complementary
#B9AB37 #3786B9 #6A37B9
monochromatic
#5B541B #8A7F29 #B9AB37 #CFC35E #DDD58D

Accessibility & contrast

On white

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

On black

8.94
#B9AB37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9AB37
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9AB37#FFFFFF#000000##000000
##B9AB371.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9ab37;
/* rgb */ color: rgb(185, 171, 55);
/* oklch */ color: oklch(73.2% 0.134 102.3);
Tailwind
colors: {
  custom: {
    50: '#d1c375',
    500: '#b9ab37',
    950: '#000000',
  },
}
SCSS
$custom: #b9ab37;
$custom-light: #d1c375;
$custom-dark: #000000;
JSON
{
  "hex": "#b9ab37",
  "rgb": {
    "r": 185,
    "g": 171,
    "b": 55
  },
  "hsl": {
    "h": 53.538,
    "s": 54.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.73224,
    "c": 0.13351,
    "h": 102.3
  },
  "luminance": 0.39716
}

Semantic roles & 50–950 ramp

primary
#B9AB37
secondary
#848BC8
accent
#5ADE4A
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #B9AB37

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

Preview Lab → · Contrast checker → · Palette generator →

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