#BB31B0#BB31B0

#BB31B0 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.1% C 0.219 H 331.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BB31B0
RGBrgb(187, 49, 176)
HSLhsl(305, 58%, 46%)
HSVhsv(305, 74%, 73%)
CMYKcmyk(0%, 73.8%, 5.9%, 26.7%)
CIE-LABlab(46.84, 67.39, -37.91)
CIE-LCHlch(46.84, 77.32, 330.64°)
OKLaboklab(57.07% 0.1928 -0.1044)
OKLCHoklch(57.07% 0.219 331.6)
XYZxyz(29.4283, 15.8984, 42.5846)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31B0 #31BB3C
analogous
#8131BB #BB31B0 #BB316B
triadic
#BB31B0 #B0BB31 #31B0BB
tetradic
#BB31B0 #BB8131 #31BB3C #316BBB
square
#BB31B0 #BB8131 #31BB3C #316BBB
split-complementary
#BB31B0 #6BBB31 #31BB81
monochromatic
#5A1855 #8B2482 #BB31B0 #D356C9 #E087D8

Accessibility & contrast

On white

5.02
#BB31B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BB31B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31B0
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31B0#FFFFFF#000000##FFFFFF
##BB31B01.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2663B3
Deuteranopia (green-blind)
#5D76AD
Tritanopia (blue-blind)
#C3426E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bb31b0;
/* rgb */ color: rgb(187, 49, 176);
/* oklch */ color: oklch(57.1% 0.219 331.6);
Tailwind
colors: {
  custom: {
    50: '#d377c8',
    500: '#bb31b0',
    950: '#000000',
  },
}
SCSS
$custom: #bb31b0;
$custom-light: #d377c8;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31b0",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 304.783,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57071,
    "c": 0.21921,
    "h": 331.6
  },
  "luminance": 0.15896
}

Semantic roles & 50–950 ramp

primary
#BB31B0
secondary
#7FC985
accent
#E25346
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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