#BB31B7#BB31B7

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

Color values

HEX#BB31B7
RGBrgb(187, 49, 183)
HSLhsl(302, 58%, 46%)
HSVhsv(302, 74%, 73%)
CMYKcmyk(0%, 73.8%, 2.1%, 26.7%)
CIE-LABlab(47.21, 68.49, -41.44)
CIE-LCHlch(47.21, 80.05, 328.82°)
OKLaboklab(57.46% 0.1929 -0.1146)
OKLCHoklch(57.46% 0.224 329.3)
XYZxyz(30.1388, 16.1826, 46.3267)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31B7 #31BB35
analogous
#7A31BB #BB31B7 #BB3172
triadic
#BB31B7 #B7BB31 #31B7BB
tetradic
#BB31B7 #BB7A31 #31BB35 #3172BB
square
#BB31B7 #BB7A31 #31BB35 #3172BB
split-complementary
#BB31B7 #72BB31 #31BB7A
monochromatic
#5A1858 #8B2488 #BB31B7 #D356CF #E087DD

Accessibility & contrast

On white

4.96
#BB31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BB31B7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31B7#FFFFFF#000000##FFFFFF
##BB31B71.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B64BB
Deuteranopia (green-blind)
#5976B4
Tritanopia (blue-blind)
#C24572
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bb31b7;
/* rgb */ color: rgb(187, 49, 183);
/* oklch */ color: oklch(57.5% 0.224 329.3);
Tailwind
colors: {
  custom: {
    50: '#d378cd',
    500: '#bb31b7',
    950: '#000000',
  },
}
SCSS
$custom: #bb31b7;
$custom-light: #d378cd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31b7",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 301.739,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57458,
    "c": 0.22437,
    "h": 329.3
  },
  "luminance": 0.1618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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