#B8A631#B8A631

#B8A631 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 72.0% C 0.133 H 100.2°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#B8A631
RGBrgb(184, 166, 49)
HSLhsl(52, 58%, 46%)
HSVhsv(52, 73%, 72%)
CMYKcmyk(0%, 9.8%, 73.4%, 27.8%)
CIE-LABlab(67.79, -6.36, 59.35)
CIE-LCHlch(67.79, 59.69, 96.12°)
OKLaboklab(72.02% -0.0237 0.1311)
OKLCHoklch(72.02% 0.133 100.2)
XYZxyz(33.9594, 37.6861, 8.3905)
Luminance0.3769 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A631 #3143B8
analogous
#B86231 #B8A631 #86B831
triadic
#B8A631 #31B8A6 #A631B8
tetradic
#B8A631 #31B862 #3143B8 #B83186
square
#B8A631 #31B862 #3143B8 #B83186
split-complementary
#B8A631 #3186B8 #6231B8
monochromatic
#574F17 #887A24 #B8A631 #D2C155 #DED385

Accessibility & contrast

On white

2.46
#B8A631 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#B8A631 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A631
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A631#FFFFFF#000000##000000
##B8A6311.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A11D
Deuteranopia (green-blind)
#BBA839
Tritanopia (blue-blind)
#C69A8F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b8a631;
/* rgb */ color: rgb(184, 166, 49);
/* oklch */ color: oklch(72.0% 0.133 100.2);
Tailwind
colors: {
  custom: {
    50: '#d1c071',
    500: '#b8a631',
    950: '#000000',
  },
}
SCSS
$custom: #b8a631;
$custom-light: #d1c071;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a631",
  "rgb": {
    "r": 184,
    "g": 166,
    "b": 49
  },
  "hsl": {
    "h": 52,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72016,
    "c": 0.1332,
    "h": 100.2
  },
  "luminance": 0.37685
}

Semantic roles & 50–950 ramp

primary
#B8A631
secondary
#7D87C8
accent
#5BE147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A631

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

Preview Lab → · Contrast checker → · Palette generator →

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