#B8A151#B8A151

#B8A151 is a light, moderate yellow. Relative luminance 0.363; OKLCH L 71.3% C 0.104 H 93.6°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#B8A151
RGBrgb(184, 161, 81)
HSLhsl(47, 42%, 52%)
HSVhsv(47, 56%, 72%)
CMYKcmyk(0%, 12.5%, 56%, 27.8%)
CIE-LABlab(66.73, -1.66, 44.17)
CIE-LCHlch(66.73, 44.20, 92.16°)
OKLaboklab(71.27% -0.0065 0.1036)
OKLCHoklch(71.27% 0.104 93.6)
XYZxyz(33.9986, 36.2758, 12.9941)
Luminance0.3627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A151 #5168B8
analogous
#B86E51 #B8A151 #9CB851
triadic
#B8A151 #51B8A1 #A151B8
tetradic
#B8A151 #51B86E #5168B8 #B8519C
square
#B8A151 #51B86E #5168B8 #B8519C
split-complementary
#B8A151 #519CB8 #6E51B8
monochromatic
#655829 #917E3B #B8A151 #CAB87C #DBD0A8

Accessibility & contrast

On white

2.54
#B8A151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#B8A151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A151
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A151#FFFFFF#000000##000000
##B8A1511.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E4A
Deuteranopia (green-blind)
#B5A554
Tritanopia (blue-blind)
#C5968F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a151;
/* rgb */ color: rgb(184, 161, 81);
/* oklch */ color: oklch(71.3% 0.104 93.6);
Tailwind
colors: {
  custom: {
    50: '#d0bc84',
    500: '#b8a151',
    950: '#000000',
  },
}
SCSS
$custom: #b8a151;
$custom-light: #d0bc84;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a151",
  "rgb": {
    "r": 184,
    "g": 161,
    "b": 81
  },
  "hsl": {
    "h": 46.602,
    "s": 42.041,
    "l": 51.961
  },
  "oklch": {
    "l": 0.71267,
    "c": 0.1038,
    "h": 93.6
  },
  "luminance": 0.36274
}

Semantic roles & 50–950 ramp

primary
#B8A151
secondary
#9CA6C9
accent
#72D256
background
#FDFBF8
surface
#FAF6EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #B8A151

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

Preview Lab → · Contrast checker → · Palette generator →

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