#B9B151#B9B151

#B9B151 is a light, moderate yellow. Relative luminance 0.424; OKLCH L 74.8% C 0.118 H 104.5°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#B9B151
RGBrgb(185, 177, 81)
HSLhsl(55, 43%, 52%)
HSVhsv(55, 56%, 73%)
CMYKcmyk(0%, 4.3%, 56.2%, 27.5%)
CIE-LABlab(71.11, -9.70, 49.26)
CIE-LCHlch(71.11, 50.20, 101.14°)
OKLaboklab(74.76% -0.0296 0.1146)
OKLCHoklch(74.76% 0.118 104.5)
XYZxyz(37.2161, 42.3539, 13.9977)
Luminance0.4235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B151 #5159B9
analogous
#B97D51 #B9B151 #8DB951
triadic
#B9B151 #51B9B1 #B151B9
tetradic
#B9B151 #51B97D #5159B9 #B9518D
square
#B9B151 #51B97D #5159B9 #B9518D
split-complementary
#B9B151 #518DB9 #7D51B9
monochromatic
#666229 #928B3B #B9B151 #CBC57D #DCD8A8

Accessibility & contrast

On white

2.22
#B9B151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#B9B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B151
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B151#FFFFFF#000000##000000
##B9B1511.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAB47
Deuteranopia (green-blind)
#C2B056
Tritanopia (blue-blind)
#C5A69C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b9b151;
/* rgb */ color: rgb(185, 177, 81);
/* oklch */ color: oklch(74.8% 0.118 104.5);
Tailwind
colors: {
  custom: {
    50: '#d0c885',
    500: '#b9b151',
    950: '#000000',
  },
}
SCSS
$custom: #b9b151;
$custom-light: #d0c885;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b151",
  "rgb": {
    "r": 185,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 55.385,
    "s": 42.623,
    "l": 52.157
  },
  "oklch": {
    "l": 0.74763,
    "c": 0.11833,
    "h": 104.5
  },
  "luminance": 0.42353
}

Semantic roles & 50–950 ramp

primary
#B9B151
secondary
#9CA0CA
accent
#5FD255
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #B9B151

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

Preview Lab → · Contrast checker → · Palette generator →

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