#B8A431#B8A431

#B8A431 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.6% C 0.132 H 99.0°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#B8A431
RGBrgb(184, 164, 49)
HSLhsl(51, 58%, 46%)
HSVhsv(51, 73%, 72%)
CMYKcmyk(0%, 10.9%, 73.4%, 27.8%)
CIE-LABlab(67.25, -5.30, 58.84)
CIE-LCHlch(67.25, 59.07, 95.15°)
OKLaboklab(71.59% -0.0207 0.13)
OKLCHoklch(71.59% 0.132 99)
XYZxyz(33.5986, 36.9647, 8.2703)
Luminance0.3696 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A431 #3145B8
analogous
#B86031 #B8A431 #88B831
triadic
#B8A431 #31B8A4 #A431B8
tetradic
#B8A431 #31B860 #3145B8 #B83188
square
#B8A431 #31B860 #3145B8 #B83188
split-complementary
#B8A431 #3188B8 #6031B8
monochromatic
#574E17 #887924 #B8A431 #D2BF55 #DED185

Accessibility & contrast

On white

2.50
#B8A431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#B8A431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A431
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A431#FFFFFF#000000##000000
##B8A4311.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A01D
Deuteranopia (green-blind)
#BAA738
Tritanopia (blue-blind)
#C6988D
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b8a431;
/* rgb */ color: rgb(184, 164, 49);
/* oklch */ color: oklch(71.6% 0.132 99.0);
Tailwind
colors: {
  custom: {
    50: '#d1be71',
    500: '#b8a431',
    950: '#000000',
  },
}
SCSS
$custom: #b8a431;
$custom-light: #d1be71;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a431",
  "rgb": {
    "r": 184,
    "g": 164,
    "b": 49
  },
  "hsl": {
    "h": 51.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71589,
    "c": 0.13161,
    "h": 99
  },
  "luminance": 0.36963
}

Semantic roles & 50–950 ramp

primary
#B8A431
secondary
#7D88C8
accent
#5EE147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A431

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

Preview Lab → · Contrast checker → · Palette generator →

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