#B9AB38#B9AB38

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

Color values

HEX#B9AB38
RGBrgb(185, 171, 56)
HSLhsl(53, 54%, 47%)
HSVhsv(53, 70%, 73%)
CMYKcmyk(0%, 7.6%, 69.7%, 27.5%)
CIE-LABlab(69.27, -8.21, 58.16)
CIE-LCHlch(69.27, 58.74, 98.03°)
OKLaboklab(73.23% -0.0282 0.1298)
OKLCHoklch(73.23% 0.133 102.3)
XYZxyz(35.2858, 39.7271, 9.5501)
Luminance0.3973 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AB38 #3846B9
analogous
#B96A38 #B9AB38 #87B938
triadic
#B9AB38 #38B9AB #AB38B9
tetradic
#B9AB38 #38B96A #3846B9 #B93887
square
#B9AB38 #38B96A #3846B9 #B93887
split-complementary
#B9AB38 #3887B9 #6A38B9
monochromatic
#5B541C #8A802A #B9AB38 #CFC35F #DDD48E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9AB38#FFFFFF#000000##000000
##B9AB381.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)
#BBA627
Deuteranopia (green-blind)
#BFAC3F
Tritanopia (blue-blind)
#C79F94
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b9ab38;
/* rgb */ color: rgb(185, 171, 56);
/* oklch */ color: oklch(73.2% 0.133 102.3);
Tailwind
colors: {
  custom: {
    50: '#d1c376',
    500: '#b9ab38',
    950: '#000000',
  },
}
SCSS
$custom: #b9ab38;
$custom-light: #d1c376;
$custom-dark: #000000;
JSON
{
  "hex": "#b9ab38",
  "rgb": {
    "r": 185,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 53.488,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.73232,
    "c": 0.13284,
    "h": 102.3
  },
  "luminance": 0.39726
}

Semantic roles & 50–950 ramp

primary
#B9AB38
secondary
#858CC8
accent
#5BDD4B
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B9AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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