#BB31B5#BB31B5

#BB31B5 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.3% C 0.223 H 329.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BB31B5
RGBrgb(187, 49, 181)
HSLhsl(303, 58%, 46%)
HSVhsv(303, 74%, 73%)
CMYKcmyk(0%, 73.8%, 3.2%, 26.7%)
CIE-LABlab(47.11, 68.17, -40.44)
CIE-LCHlch(47.11, 79.26, 329.33°)
OKLaboklab(57.35% 0.1929 -0.1117)
OKLCHoklch(57.35% 0.223 329.9)
XYZxyz(29.9322, 16.0999, 45.2382)
Luminance0.1610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31B5 #31BB37
analogous
#7C31BB #BB31B5 #BB3170
triadic
#BB31B5 #B5BB31 #31B5BB
tetradic
#BB31B5 #BB7C31 #31BB37 #3170BB
square
#BB31B5 #BB7C31 #31BB37 #3170BB
split-complementary
#BB31B5 #70BB31 #31BB7C
monochromatic
#5A1857 #8B2486 #BB31B5 #D356CD #E087DC

Accessibility & contrast

On white

4.98
#BB31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#BB31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31B5
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31B5#FFFFFF#000000##FFFFFF
##BB31B51.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E64B9
Deuteranopia (green-blind)
#5B76B2
Tritanopia (blue-blind)
#C24471
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bb31b5;
/* rgb */ color: rgb(187, 49, 181);
/* oklch */ color: oklch(57.3% 0.223 329.9);
Tailwind
colors: {
  custom: {
    50: '#d378cb',
    500: '#bb31b5',
    950: '#000000',
  },
}
SCSS
$custom: #bb31b5;
$custom-light: #d378cb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31b5",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 302.609,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57346,
    "c": 0.22289,
    "h": 329.9
  },
  "luminance": 0.16098
}

Semantic roles & 50–950 ramp

primary
#BB31B5
secondary
#7FC982
accent
#E24D46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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