#B9AB40#B9AB40

#B9AB40 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 73.3% C 0.127 H 101.8°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#B9AB40
RGBrgb(185, 171, 64)
HSLhsl(53, 49%, 49%)
HSVhsv(53, 65%, 73%)
CMYKcmyk(0%, 7.6%, 65.4%, 27.5%)
CIE-LABlab(69.34, -7.75, 54.94)
CIE-LCHlch(69.34, 55.48, 98.03°)
OKLaboklab(73.3% -0.026 0.1243)
OKLCHoklch(73.3% 0.127 101.8)
XYZxyz(35.4973, 39.8117, 10.6641)
Luminance0.3981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AB40 #404EB9
analogous
#B96F40 #B9AB40 #8BB940
triadic
#B9AB40 #40B9AB #AB40B9
tetradic
#B9AB40 #40B96F #404EB9 #B9408B
square
#B9AB40 #40B96F #404EB9 #B9408B
split-complementary
#B9AB40 #408BB9 #6F40B9
monochromatic
#5E5721 #8C8130 #B9AB40 #CCC06B #DBD498

Accessibility & contrast

On white

2.34
#B9AB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#B9AB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9AB40
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9AB40#FFFFFF#000000##000000
##B9AB401.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA632
Deuteranopia (green-blind)
#BEAC46
Tritanopia (blue-blind)
#C79F95
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b9ab40;
/* rgb */ color: rgb(185, 171, 64);
/* oklch */ color: oklch(73.3% 0.127 101.8);
Tailwind
colors: {
  custom: {
    50: '#d1c37a',
    500: '#b9ab40',
    950: '#000000',
  },
}
SCSS
$custom: #b9ab40;
$custom-light: #d1c37a;
$custom-dark: #000000;
JSON
{
  "hex": "#b9ab40",
  "rgb": {
    "r": 185,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 53.058,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.733,
    "c": 0.12703,
    "h": 101.8
  },
  "luminance": 0.3981
}

Semantic roles & 50–950 ramp

primary
#B9AB40
secondary
#8E94C7
accent
#5FD850
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B9AB40

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

Preview Lab → · Contrast checker → · Palette generator →

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