#B8B531#B8B531

#B8B531 is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.3% C 0.147 H 108.1°. Best body text is #000000 at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#B8B531
RGBrgb(184, 181, 49)
HSLhsl(59, 58%, 46%)
HSVhsv(59, 73%, 72%)
CMYKcmyk(0%, 1.6%, 73.4%, 27.8%)
CIE-LABlab(71.87, -14.16, 63.25)
CIE-LCHlch(71.87, 64.81, 102.62°)
OKLaboklab(75.26% -0.0456 0.1393)
OKLCHoklch(75.26% 0.147 108.1)
XYZxyz(36.8468, 43.4611, 9.3530)
Luminance0.4346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B531 #3134B8
analogous
#B87231 #B8B531 #77B831
triadic
#B8B531 #31B8B5 #B531B8
tetradic
#B8B531 #31B872 #3134B8 #B83177
square
#B8B531 #31B872 #3134B8 #B83177
split-complementary
#B8B531 #3177B8 #7231B8
monochromatic
#575617 #888524 #B8B531 #D2CF55 #DEDC85

Accessibility & contrast

On white

2.17
#B8B531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.69
#B8B531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B531
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B531#FFFFFF#000000##000000
##B8B5311.002.179.699.69
#FFFFFF2.171.0021.0021.00
#0000009.6921.001.001.00
##0000009.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE16
Deuteranopia (green-blind)
#C6B23B
Tritanopia (blue-blind)
#C5A99C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b8b531;
/* rgb */ color: rgb(184, 181, 49);
/* oklch */ color: oklch(75.3% 0.147 108.1);
Tailwind
colors: {
  custom: {
    50: '#d1ca73',
    500: '#b8b531',
    950: '#000000',
  },
}
SCSS
$custom: #b8b531;
$custom-light: #d1ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b531",
  "rgb": {
    "r": 184,
    "g": 181,
    "b": 49
  },
  "hsl": {
    "h": 58.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75261,
    "c": 0.14661,
    "h": 108.1
  },
  "luminance": 0.4346
}

Semantic roles & 50–950 ramp

primary
#B8B531
secondary
#7D7FC8
accent
#4AE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8B531

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

Preview Lab → · Contrast checker → · Palette generator →

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