#BB31B6#BB31B6

#BB31B6 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.224 H 329.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BB31B6
RGBrgb(187, 49, 182)
HSLhsl(302, 58%, 46%)
HSVhsv(302, 74%, 73%)
CMYKcmyk(0%, 73.8%, 2.7%, 26.7%)
CIE-LABlab(47.16, 68.33, -40.94)
CIE-LCHlch(47.16, 79.65, 329.07°)
OKLaboklab(57.4% 0.1929 -0.1131)
OKLCHoklch(57.4% 0.224 329.6)
XYZxyz(30.0351, 16.1411, 45.7805)
Luminance0.1614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31B6 #31BB36
analogous
#7B31BB #BB31B6 #BB3171
triadic
#BB31B6 #B6BB31 #31B6BB
tetradic
#BB31B6 #BB7B31 #31BB36 #3171BB
square
#BB31B6 #BB7B31 #31BB36 #3171BB
split-complementary
#BB31B6 #71BB31 #31BB7B
monochromatic
#5A1858 #8B2487 #BB31B6 #D356CE #E087DC

Accessibility & contrast

On white

4.97
#BB31B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BB31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31B6
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31B6#FFFFFF#000000##FFFFFF
##BB31B61.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D64BA
Deuteranopia (green-blind)
#5A76B3
Tritanopia (blue-blind)
#C24571
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bb31b6;
/* rgb */ color: rgb(187, 49, 182);
/* oklch */ color: oklch(57.4% 0.224 329.6);
Tailwind
colors: {
  custom: {
    50: '#d378cc',
    500: '#bb31b6',
    950: '#000000',
  },
}
SCSS
$custom: #bb31b6;
$custom-light: #d378cc;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31b6",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 302.174,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57402,
    "c": 0.22363,
    "h": 329.6
  },
  "luminance": 0.16139
}

Semantic roles & 50–950 ramp

primary
#BB31B6
secondary
#7FC981
accent
#E24C46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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