#B8BB31#B8BB31

#B8BB31 is a light, vivid yellow. Relative luminance 0.460; OKLCH L 76.6% C 0.153 H 110.8°. Best body text is #000000 at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#B8BB31
RGBrgb(184, 187, 49)
HSLhsl(61, 58%, 46%)
HSVhsv(61, 74%, 73%)
CMYKcmyk(1.6%, 0%, 73.8%, 26.7%)
CIE-LABlab(73.52, -17.20, 64.80)
CIE-LCHlch(73.52, 67.05, 104.86°)
OKLaboklab(76.58% -0.0541 0.1426)
OKLCHoklch(76.58% 0.153 110.8)
XYZxyz(38.0932, 45.9538, 9.7685)
Luminance0.4595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8BB31 #3431BB
analogous
#BB7931 #B8BB31 #73BB31
triadic
#B8BB31 #31B8BB #BB31B8
tetradic
#B8BB31 #31BB79 #3431BB #BB3173
square
#B8BB31 #31BB79 #3431BB #BB3173
split-complementary
#B8BB31 #3173BB #7931BB
monochromatic
#595A18 #888B24 #B8BB31 #D0D356 #DEE087

Accessibility & contrast

On white

2.06
#B8BB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.19
#B8BB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8BB31
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8BB31#FFFFFF#000000##000000
##B8BB311.002.0610.1910.19
#FFFFFF2.061.0021.0021.00
#00000010.1921.001.001.00
##00000010.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB313
Deuteranopia (green-blind)
#CBB63C
Tritanopia (blue-blind)
#C5AFA1
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #b8bb31;
/* rgb */ color: rgb(184, 187, 49);
/* oklch */ color: oklch(76.6% 0.153 110.8);
Tailwind
colors: {
  custom: {
    50: '#d1cf74',
    500: '#b8bb31',
    950: '#000000',
  },
}
SCSS
$custom: #b8bb31;
$custom-light: #d1cf74;
$custom-dark: #000000;
JSON
{
  "hex": "#b8bb31",
  "rgb": {
    "r": 184,
    "g": 187,
    "b": 49
  },
  "hsl": {
    "h": 61.304,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.76578,
    "c": 0.15255,
    "h": 110.8
  },
  "luminance": 0.45953
}

Semantic roles & 50–950 ramp

primary
#B8BB31
secondary
#807FC9
accent
#46E249
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8BB31

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

Preview Lab → · Contrast checker → · Palette generator →

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