#B8A531#B8A531

#B8A531 is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.8% C 0.132 H 99.6°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#B8A531
RGBrgb(184, 165, 49)
HSLhsl(52, 58%, 46%)
HSVhsv(52, 73%, 72%)
CMYKcmyk(0%, 10.3%, 73.4%, 27.8%)
CIE-LABlab(67.52, -5.83, 59.09)
CIE-LCHlch(67.52, 59.38, 95.64°)
OKLaboklab(71.8% -0.0222 0.1305)
OKLCHoklch(71.8% 0.132 99.6)
XYZxyz(33.7783, 37.3240, 8.3302)
Luminance0.3732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A531 #3144B8
analogous
#B86231 #B8A531 #87B831
triadic
#B8A531 #31B8A5 #A531B8
tetradic
#B8A531 #31B862 #3144B8 #B83187
square
#B8A531 #31B862 #3144B8 #B83187
split-complementary
#B8A531 #3187B8 #6231B8
monochromatic
#574E17 #887A24 #B8A531 #D2C055 #DED285

Accessibility & contrast

On white

2.48
#B8A531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#B8A531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A531
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A531#FFFFFF#000000##000000
##B8A5311.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A01D
Deuteranopia (green-blind)
#BAA739
Tritanopia (blue-blind)
#C6998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b8a531;
/* rgb */ color: rgb(184, 165, 49);
/* oklch */ color: oklch(71.8% 0.132 99.6);
Tailwind
colors: {
  custom: {
    50: '#d1bf71',
    500: '#b8a531',
    950: '#000000',
  },
}
SCSS
$custom: #b8a531;
$custom-light: #d1bf71;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a531",
  "rgb": {
    "r": 184,
    "g": 165,
    "b": 49
  },
  "hsl": {
    "h": 51.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71802,
    "c": 0.1324,
    "h": 99.6
  },
  "luminance": 0.37322
}

Semantic roles & 50–950 ramp

primary
#B8A531
secondary
#7D87C8
accent
#5CE147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A531

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

Preview Lab → · Contrast checker → · Palette generator →

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