#BB31B8#BB31B8

#BB31B8 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.225 H 329.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BB31B8
RGBrgb(187, 49, 184)
HSLhsl(301, 58%, 46%)
HSVhsv(301, 74%, 73%)
CMYKcmyk(0%, 73.8%, 1.6%, 26.7%)
CIE-LABlab(47.27, 68.65, -41.94)
CIE-LCHlch(47.27, 80.44, 328.58°)
OKLaboklab(57.52% 0.1929 -0.116)
OKLCHoklch(57.52% 0.225 329)
XYZxyz(30.2433, 16.2244, 46.8768)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31B8 #31BB34
analogous
#7931BB #BB31B8 #BB3173
triadic
#BB31B8 #B8BB31 #31B8BB
tetradic
#BB31B8 #BB7931 #31BB34 #3173BB
square
#BB31B8 #BB7931 #31BB34 #3173BB
split-complementary
#BB31B8 #73BB31 #31BB79
monochromatic
#5A1859 #8B2488 #BB31B8 #D356D0 #E087DE

Accessibility & contrast

On white

4.95
#BB31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BB31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31B8
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31B8#FFFFFF#000000##FFFFFF
##BB31B81.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1964BC
Deuteranopia (green-blind)
#5976B5
Tritanopia (blue-blind)
#C14572
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bb31b8;
/* rgb */ color: rgb(187, 49, 184);
/* oklch */ color: oklch(57.5% 0.225 329.0);
Tailwind
colors: {
  custom: {
    50: '#d378ce',
    500: '#bb31b8',
    950: '#000000',
  },
}
SCSS
$custom: #bb31b8;
$custom-light: #d378ce;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31b8",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 301.304,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57515,
    "c": 0.22512,
    "h": 329
  },
  "luminance": 0.16222
}

Semantic roles & 50–950 ramp

primary
#BB31B8
secondary
#7FC980
accent
#E24946
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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