#BB31B1#BB31B1

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

Color values

HEX#BB31B1
RGBrgb(187, 49, 177)
HSLhsl(304, 58%, 46%)
HSVhsv(304, 74%, 73%)
CMYKcmyk(0%, 73.8%, 5.3%, 26.7%)
CIE-LABlab(46.89, 67.54, -38.42)
CIE-LCHlch(46.89, 77.71, 330.37°)
OKLaboklab(57.13% 0.1928 -0.1058)
OKLCHoklch(57.13% 0.22 331.2)
XYZxyz(29.5276, 15.9381, 43.1076)
Luminance0.1594 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31B1 #31BB3B
analogous
#8031BB #BB31B1 #BB316C
triadic
#BB31B1 #B1BB31 #31B1BB
tetradic
#BB31B1 #BB8031 #31BB3B #316CBB
square
#BB31B1 #BB8031 #31BB3B #316CBB
split-complementary
#BB31B1 #6CBB31 #31BB80
monochromatic
#5A1855 #8B2483 #BB31B1 #D356CA #E087D9

Accessibility & contrast

On white

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

On black

4.19
#BB31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BB31B1#FFFFFF#000000##FFFFFF
##BB31B11.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2463B4
Deuteranopia (green-blind)
#5D76AE
Tritanopia (blue-blind)
#C3426E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bb31b1;
/* rgb */ color: rgb(187, 49, 177);
/* oklch */ color: oklch(57.1% 0.220 331.2);
Tailwind
colors: {
  custom: {
    50: '#d377c9',
    500: '#bb31b1',
    950: '#000000',
  },
}
SCSS
$custom: #bb31b1;
$custom-light: #d377c9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31b1",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 304.348,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57126,
    "c": 0.21994,
    "h": 331.2
  },
  "luminance": 0.15936
}

Semantic roles & 50–950 ramp

primary
#BB31B1
secondary
#7FC984
accent
#E25146
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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