#B5BB31#B5BB31

#B5BB31 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 76.3% C 0.153 H 112.0°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#B5BB31
RGBrgb(181, 187, 49)
HSLhsl(63, 58%, 46%)
HSVhsv(63, 74%, 73%)
CMYKcmyk(3.2%, 0%, 73.8%, 26.7%)
CIE-LABlab(73.28, -18.48, 64.49)
CIE-LCHlch(73.28, 67.09, 105.99°)
OKLaboklab(76.33% -0.0575 0.1421)
OKLCHoklch(76.33% 0.153 112)
XYZxyz(37.3820, 45.5871, 9.7351)
Luminance0.4559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5BB31 #3731BB
analogous
#BB7C31 #B5BB31 #70BB31
triadic
#B5BB31 #31B5BB #BB31B5
tetradic
#B5BB31 #31BB7C #3731BB #BB3170
square
#B5BB31 #31BB7C #3731BB #BB3170
split-complementary
#B5BB31 #3170BB #7C31BB
monochromatic
#575A18 #868B24 #B5BB31 #CDD356 #DCE087

Accessibility & contrast

On white

2.08
#B5BB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.12
#B5BB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5BB31
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5BB31#FFFFFF#000000##000000
##B5BB311.002.0810.1210.12
#FFFFFF2.081.0021.0021.00
#00000010.1221.001.001.00
##00000010.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B213
Deuteranopia (green-blind)
#CAB63C
Tritanopia (blue-blind)
#C2AFA1
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #b5bb31;
/* rgb */ color: rgb(181, 187, 49);
/* oklch */ color: oklch(76.3% 0.153 112.0);
Tailwind
colors: {
  custom: {
    50: '#cfcf74',
    500: '#b5bb31',
    950: '#000000',
  },
}
SCSS
$custom: #b5bb31;
$custom-light: #cfcf74;
$custom-dark: #000000;
JSON
{
  "hex": "#b5bb31",
  "rgb": {
    "r": 181,
    "g": 187,
    "b": 49
  },
  "hsl": {
    "h": 62.609,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.76329,
    "c": 0.15329,
    "h": 112
  },
  "luminance": 0.45586
}

Semantic roles & 50–950 ramp

primary
#B5BB31
secondary
#827FC9
accent
#46E24D
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5BB31

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

Preview Lab → · Contrast checker → · Palette generator →

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