#BB31BD#BB31BD

#BB31BD is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.8% C 0.229 H 327.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BB31BD
RGBrgb(187, 49, 189)
HSLhsl(299, 59%, 47%)
HSVhsv(299, 74%, 74%)
CMYKcmyk(1.1%, 74.1%, 0%, 25.9%)
CIE-LABlab(47.54, 69.45, -44.42)
CIE-LCHlch(47.54, 82.44, 327.40°)
OKLaboklab(57.8% 0.1929 -0.1232)
OKLCHoklch(57.8% 0.229 327.4)
XYZxyz(30.7767, 16.4377, 49.6860)
Luminance0.1644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31BD #33BD31
analogous
#7531BD #BB31BD #BD3179
triadic
#BB31BD #BDBB31 #31BDBB
tetradic
#BB31BD #BD7531 #33BD31 #3179BD
square
#BB31BD #BD7531 #33BD31 #3179BD
split-complementary
#BB31BD #79BD31 #31BD75
monochromatic
#5B185C #8B248C #BB31BD #D258D4 #DF88E0

Accessibility & contrast

On white

4.90
#BB31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BB31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31BD
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31BD#FFFFFF#000000##FFFFFF
##BB31BD1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C66C1
Deuteranopia (green-blind)
#5677BA
Tritanopia (blue-blind)
#C14875
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bb31bd;
/* rgb */ color: rgb(187, 49, 189);
/* oklch */ color: oklch(57.8% 0.229 327.4);
Tailwind
colors: {
  custom: {
    50: '#d378d1',
    500: '#bb31bd',
    950: '#000000',
  },
}
SCSS
$custom: #bb31bd;
$custom-light: #d378d1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31bd",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 299.143,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57801,
    "c": 0.22887,
    "h": 327.4
  },
  "luminance": 0.16436
}

Semantic roles & 50–950 ramp

primary
#BB31BD
secondary
#81CA80
accent
#E24648
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BB31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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