#B9AB2D#B9AB2D

#B9AB2D is a light, vivid yellow. Relative luminance 0.396; OKLCH L 73.2% C 0.140 H 102.7°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#B9AB2D
RGBrgb(185, 171, 45)
HSLhsl(54, 61%, 45%)
HSVhsv(54, 76%, 73%)
CMYKcmyk(0%, 7.6%, 75.7%, 27.5%)
CIE-LABlab(69.21, -8.73, 62.15)
CIE-LCHlch(69.21, 62.76, 97.99°)
OKLaboklab(73.16% -0.0308 0.1362)
OKLCHoklch(73.16% 0.14 102.7)
XYZxyz(35.0457, 39.6311, 8.2857)
Luminance0.3963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AB2D #2D3BB9
analogous
#B9652D #B9AB2D #81B92D
triadic
#B9AB2D #2DB9AB #AB2DB9
tetradic
#B9AB2D #2DB965 #2D3BB9 #B92D81
square
#B9AB2D #2DB965 #2D3BB9 #B92D81
split-complementary
#B9AB2D #2D81B9 #652DB9
monochromatic
#575015 #887D21 #B9AB2D #D4C74F #E0D780

Accessibility & contrast

On white

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

On black

8.93
#B9AB2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9AB2D
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9AB2D#FFFFFF#000000##000000
##B9AB2D1.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9ab2d;
/* rgb */ color: rgb(185, 171, 45);
/* oklch */ color: oklch(73.2% 0.140 102.7);
Tailwind
colors: {
  custom: {
    50: '#d2c370',
    500: '#b9ab2d',
    950: '#000000',
  },
}
SCSS
$custom: #b9ab2d;
$custom-light: #d2c370;
$custom-dark: #000000;
JSON
{
  "hex": "#b9ab2d",
  "rgb": {
    "r": 185,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 54,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73156,
    "c": 0.13966,
    "h": 102.7
  },
  "luminance": 0.3963
}

Semantic roles & 50–950 ramp

primary
#B9AB2D
secondary
#7981C9
accent
#54E444
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9AB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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