#B8A731#B8A731

#B8A731 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.2% C 0.134 H 100.8°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#B8A731
RGBrgb(184, 167, 49)
HSLhsl(52, 58%, 46%)
HSVhsv(52, 73%, 72%)
CMYKcmyk(0%, 9.2%, 73.4%, 27.8%)
CIE-LABlab(68.06, -6.89, 59.61)
CIE-LCHlch(68.06, 60.01, 96.59°)
OKLaboklab(72.23% -0.0252 0.1316)
OKLCHoklch(72.23% 0.134 100.8)
XYZxyz(34.1418, 38.0511, 8.4514)
Luminance0.3805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A731 #3142B8
analogous
#B86331 #B8A731 #86B831
triadic
#B8A731 #31B8A7 #A731B8
tetradic
#B8A731 #31B863 #3142B8 #B83186
square
#B8A731 #31B863 #3142B8 #B83186
split-complementary
#B8A731 #3186B8 #6331B8
monochromatic
#574F17 #887B24 #B8A731 #D2C255 #DED385

Accessibility & contrast

On white

2.44
#B8A731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#B8A731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A731
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A731#FFFFFF#000000##000000
##B8A7311.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21C
Deuteranopia (green-blind)
#BCA939
Tritanopia (blue-blind)
#C69B90
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b8a731;
/* rgb */ color: rgb(184, 167, 49);
/* oklch */ color: oklch(72.2% 0.134 100.8);
Tailwind
colors: {
  custom: {
    50: '#d1c071',
    500: '#b8a731',
    950: '#000000',
  },
}
SCSS
$custom: #b8a731;
$custom-light: #d1c071;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a731",
  "rgb": {
    "r": 184,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 52.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.7223,
    "c": 0.13402,
    "h": 100.8
  },
  "luminance": 0.3805
}

Semantic roles & 50–950 ramp

primary
#B8A731
secondary
#7D86C8
accent
#5AE147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A731

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

Preview Lab → · Contrast checker → · Palette generator →

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