#B8A131#B8A131

#B8A131 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 71.0% C 0.129 H 97.2°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#B8A131
RGBrgb(184, 161, 49)
HSLhsl(50, 58%, 46%)
HSVhsv(50, 73%, 72%)
CMYKcmyk(0%, 12.5%, 73.4%, 27.8%)
CIE-LABlab(66.45, -3.71, 58.06)
CIE-LCHlch(66.45, 58.18, 93.65°)
OKLaboklab(70.95% -0.0161 0.1283)
OKLCHoklch(70.95% 0.129 97.2)
XYZxyz(33.0681, 35.9036, 8.0934)
Luminance0.3590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A131 #3148B8
analogous
#B85D31 #B8A131 #8BB831
triadic
#B8A131 #31B8A1 #A131B8
tetradic
#B8A131 #31B85D #3148B8 #B8318B
square
#B8A131 #31B85D #3148B8 #B8318B
split-complementary
#B8A131 #318BB8 #5D31B8
monochromatic
#574C17 #887724 #B8A131 #D2BC55 #DECF85

Accessibility & contrast

On white

2.57
#B8A131 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#B8A131 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A131
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A131#FFFFFF#000000##000000
##B8A1311.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1E
Deuteranopia (green-blind)
#B7A538
Tritanopia (blue-blind)
#C7958B
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a131;
/* rgb */ color: rgb(184, 161, 49);
/* oklch */ color: oklch(71.0% 0.129 97.2);
Tailwind
colors: {
  custom: {
    50: '#d1bc71',
    500: '#b8a131',
    950: '#000000',
  },
}
SCSS
$custom: #b8a131;
$custom-light: #d1bc71;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a131",
  "rgb": {
    "r": 184,
    "g": 161,
    "b": 49
  },
  "hsl": {
    "h": 49.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.70952,
    "c": 0.12934,
    "h": 97.2
  },
  "luminance": 0.35902
}

Semantic roles & 50–950 ramp

primary
#B8A131
secondary
#7D8AC8
accent
#61E147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #B8A131

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

Preview Lab → · Contrast checker → · Palette generator →

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