#B8A331#B8A331

#B8A331 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.4% C 0.131 H 98.4°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#B8A331
RGBrgb(184, 163, 49)
HSLhsl(51, 58%, 46%)
HSVhsv(51, 73%, 72%)
CMYKcmyk(0%, 11.4%, 73.4%, 27.8%)
CIE-LABlab(66.98, -4.77, 58.58)
CIE-LCHlch(66.98, 58.77, 94.66°)
OKLaboklab(71.38% -0.0192 0.1294)
OKLCHoklch(71.38% 0.131 98.4)
XYZxyz(33.4204, 36.6082, 8.2109)
Luminance0.3661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A331 #3146B8
analogous
#B86031 #B8A331 #89B831
triadic
#B8A331 #31B8A3 #A331B8
tetradic
#B8A331 #31B860 #3146B8 #B83189
square
#B8A331 #31B860 #3146B8 #B83189
split-complementary
#B8A331 #3189B8 #6031B8
monochromatic
#574D17 #887824 #B8A331 #D2BE55 #DED185

Accessibility & contrast

On white

2.52
#B8A331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#B8A331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A331
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A331#FFFFFF#000000##000000
##B8A3311.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F1E
Deuteranopia (green-blind)
#B9A638
Tritanopia (blue-blind)
#C7978D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b8a331;
/* rgb */ color: rgb(184, 163, 49);
/* oklch */ color: oklch(71.4% 0.131 98.4);
Tailwind
colors: {
  custom: {
    50: '#d1bd71',
    500: '#b8a331',
    950: '#000000',
  },
}
SCSS
$custom: #b8a331;
$custom-light: #d1bd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a331",
  "rgb": {
    "r": 184,
    "g": 163,
    "b": 49
  },
  "hsl": {
    "h": 50.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71376,
    "c": 0.13084,
    "h": 98.4
  },
  "luminance": 0.36606
}

Semantic roles & 50–950 ramp

primary
#B8A331
secondary
#7D89C8
accent
#5FE147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A331

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

Preview Lab → · Contrast checker → · Palette generator →

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