#B8A931#B8A931

#B8A931 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.7% C 0.136 H 102.0°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#B8A931
RGBrgb(184, 169, 49)
HSLhsl(53, 58%, 46%)
HSVhsv(53, 73%, 72%)
CMYKcmyk(0%, 8.2%, 73.4%, 27.8%)
CIE-LABlab(68.60, -7.94, 60.13)
CIE-LCHlch(68.60, 60.66, 97.52°)
OKLaboklab(72.66% -0.0281 0.1327)
OKLCHoklch(72.66% 0.136 102)
XYZxyz(34.5111, 38.7896, 8.5744)
Luminance0.3879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A931 #3140B8
analogous
#B86531 #B8A931 #83B831
triadic
#B8A931 #31B8A9 #A931B8
tetradic
#B8A931 #31B865 #3140B8 #B83183
square
#B8A931 #31B865 #3140B8 #B83183
split-complementary
#B8A931 #3183B8 #6531B8
monochromatic
#575017 #887D24 #B8A931 #D2C455 #DED585

Accessibility & contrast

On white

2.40
#B8A931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#B8A931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A931
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A931#FFFFFF#000000##000000
##B8A9311.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A41C
Deuteranopia (green-blind)
#BDAA39
Tritanopia (blue-blind)
#C69D92
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b8a931;
/* rgb */ color: rgb(184, 169, 49);
/* oklch */ color: oklch(72.7% 0.136 102.0);
Tailwind
colors: {
  custom: {
    50: '#d1c272',
    500: '#b8a931',
    950: '#000000',
  },
}
SCSS
$custom: #b8a931;
$custom-light: #d1c272;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a931",
  "rgb": {
    "r": 184,
    "g": 169,
    "b": 49
  },
  "hsl": {
    "h": 53.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72659,
    "c": 0.13568,
    "h": 102
  },
  "luminance": 0.38788
}

Semantic roles & 50–950 ramp

primary
#B8A931
secondary
#7D85C8
accent
#58E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A931

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

Preview Lab → · Contrast checker → · Palette generator →

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