#B8A831#B8A831

#B8A831 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.4% C 0.135 H 101.4°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#B8A831
RGBrgb(184, 168, 49)
HSLhsl(53, 58%, 46%)
HSVhsv(53, 73%, 72%)
CMYKcmyk(0%, 8.7%, 73.4%, 27.8%)
CIE-LABlab(68.33, -7.42, 59.87)
CIE-LCHlch(68.33, 60.33, 97.06°)
OKLaboklab(72.44% -0.0267 0.1322)
OKLCHoklch(72.44% 0.135 101.4)
XYZxyz(34.3257, 38.4189, 8.5127)
Luminance0.3842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A831 #3141B8
analogous
#B86431 #B8A831 #84B831
triadic
#B8A831 #31B8A8 #A831B8
tetradic
#B8A831 #31B864 #3141B8 #B83184
square
#B8A831 #31B864 #3141B8 #B83184
split-complementary
#B8A831 #3184B8 #6431B8
monochromatic
#575017 #887C24 #B8A831 #D2C355 #DED485

Accessibility & contrast

On white

2.42
#B8A831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#B8A831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A831
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A831#FFFFFF#000000##000000
##B8A8311.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31C
Deuteranopia (green-blind)
#BDA939
Tritanopia (blue-blind)
#C69C91
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b8a831;
/* rgb */ color: rgb(184, 168, 49);
/* oklch */ color: oklch(72.4% 0.135 101.4);
Tailwind
colors: {
  custom: {
    50: '#d1c172',
    500: '#b8a831',
    950: '#000000',
  },
}
SCSS
$custom: #b8a831;
$custom-light: #d1c172;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a831",
  "rgb": {
    "r": 184,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 52.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72444,
    "c": 0.13484,
    "h": 101.4
  },
  "luminance": 0.38417
}

Semantic roles & 50–950 ramp

primary
#B8A831
secondary
#7D86C8
accent
#59E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A831

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

Preview Lab → · Contrast checker → · Palette generator →

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