#B8A031#B8A031

#B8A031 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.129 H 96.5°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#B8A031
RGBrgb(184, 160, 49)
HSLhsl(49, 58%, 46%)
HSVhsv(49, 73%, 72%)
CMYKcmyk(0%, 13%, 73.4%, 27.8%)
CIE-LABlab(66.18, -3.17, 57.80)
CIE-LCHlch(66.18, 57.88, 93.14°)
OKLaboklab(70.74% -0.0146 0.1278)
OKLCHoklch(70.74% 0.129 96.5)
XYZxyz(32.8940, 35.5554, 8.0354)
Luminance0.3555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A031 #3149B8
analogous
#B85C31 #B8A031 #8CB831
triadic
#B8A031 #31B8A0 #A031B8
tetradic
#B8A031 #31B85C #3149B8 #B8318C
square
#B8A031 #31B85C #3149B8 #B8318C
split-complementary
#B8A031 #318CB8 #5C31B8
monochromatic
#574C17 #887624 #B8A031 #D2BB55 #DECF85

Accessibility & contrast

On white

2.59
#B8A031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#B8A031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A031
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A031#FFFFFF#000000##000000
##B8A0311.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B7A438
Tritanopia (blue-blind)
#C7948A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b8a031;
/* rgb */ color: rgb(184, 160, 49);
/* oklch */ color: oklch(70.7% 0.129 96.5);
Tailwind
colors: {
  custom: {
    50: '#d1bb71',
    500: '#b8a031',
    950: '#000000',
  },
}
SCSS
$custom: #b8a031;
$custom-light: #d1bb71;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a031",
  "rgb": {
    "r": 184,
    "g": 160,
    "b": 49
  },
  "hsl": {
    "h": 49.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.7074,
    "c": 0.12861,
    "h": 96.5
  },
  "luminance": 0.35554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B8A031

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

Preview Lab → · Contrast checker → · Palette generator →

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