#B8B151#B8B151

#B8B151 is a light, moderate yellow. Relative luminance 0.422; OKLCH L 74.7% C 0.118 H 105.1°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#B8B151
RGBrgb(184, 177, 81)
HSLhsl(56, 42%, 52%)
HSVhsv(56, 56%, 72%)
CMYKcmyk(0%, 3.8%, 56%, 27.8%)
CIE-LABlab(71.03, -10.12, 49.14)
CIE-LCHlch(71.03, 50.17, 101.64°)
OKLaboklab(74.68% -0.0308 0.1143)
OKLCHoklch(74.68% 0.118 105.1)
XYZxyz(36.9756, 42.2299, 13.9864)
Luminance0.4223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B151 #5158B8
analogous
#B87D51 #B8B151 #8CB851
triadic
#B8B151 #51B8B1 #B151B8
tetradic
#B8B151 #51B87D #5158B8 #B8518C
square
#B8B151 #51B87D #5158B8 #B8518C
split-complementary
#B8B151 #518CB8 #7D51B8
monochromatic
#656129 #918B3B #B8B151 #CAC47C #DBD8A8

Accessibility & contrast

On white

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

On black

9.45
#B8B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B151
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B151#FFFFFF#000000##000000
##B8B1511.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b8b151;
/* rgb */ color: rgb(184, 177, 81);
/* oklch */ color: oklch(74.7% 0.118 105.1);
Tailwind
colors: {
  custom: {
    50: '#d0c885',
    500: '#b8b151',
    950: '#000000',
  },
}
SCSS
$custom: #b8b151;
$custom-light: #d0c885;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b151",
  "rgb": {
    "r": 184,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 55.922,
    "s": 42.041,
    "l": 51.961
  },
  "oklch": {
    "l": 0.74675,
    "c": 0.11839,
    "h": 105.1
  },
  "luminance": 0.42229
}

Semantic roles & 50–950 ramp

primary
#B8B151
secondary
#9C9FC9
accent
#5ED256
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #B8B151

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

Preview Lab → · Contrast checker → · Palette generator →

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