#BB31BF#BB31BF

#BB31BF is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.230 H 326.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BB31BF
RGBrgb(187, 49, 191)
HSLhsl(298, 59%, 47%)
HSVhsv(298, 74%, 75%)
CMYKcmyk(2.1%, 74.3%, 0%, 25.1%)
CIE-LABlab(47.66, 69.78, -45.40)
CIE-LCHlch(47.66, 83.25, 326.95°)
OKLaboklab(57.92% 0.1928 -0.1261)
OKLCHoklch(57.92% 0.23 326.8)
XYZxyz(30.9953, 16.5252, 50.8373)
Luminance0.1652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31BF #35BF31
analogous
#7431BF #BB31BF #BF317C
triadic
#BB31BF #BFBB31 #31BFBB
tetradic
#BB31BF #BF7431 #35BF31 #317CBF
square
#BB31BF #BF7431 #35BF31 #317CBF
split-complementary
#BB31BF #7CBF31 #31BF74
monochromatic
#5C185E #8B258E #BB31BF #D159D4 #DE8AE1

Accessibility & contrast

On white

4.88
#BB31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#BB31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31BF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31BF#FFFFFF#000000##FFFFFF
##BB31BF1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0466C3
Deuteranopia (green-blind)
#5577BC
Tritanopia (blue-blind)
#C04976
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bb31bf;
/* rgb */ color: rgb(187, 49, 191);
/* oklch */ color: oklch(57.9% 0.230 326.8);
Tailwind
colors: {
  custom: {
    50: '#d378d3',
    500: '#bb31bf',
    950: '#000000',
  },
}
SCSS
$custom: #bb31bf;
$custom-light: #d378d3;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31bf",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 298.31,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57917,
    "c": 0.2304,
    "h": 326.8
  },
  "luminance": 0.16523
}

Semantic roles & 50–950 ramp

primary
#BB31BF
secondary
#83CB81
accent
#E2454A
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BB31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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