#BB31B4#BB31B4

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

Color values

HEX#BB31B4
RGBrgb(187, 49, 180)
HSLhsl(303, 58%, 46%)
HSVhsv(303, 74%, 73%)
CMYKcmyk(0%, 73.8%, 3.7%, 26.7%)
CIE-LABlab(47.05, 68.01, -39.93)
CIE-LCHlch(47.05, 78.87, 329.58°)
OKLaboklab(57.29% 0.1929 -0.1102)
OKLCHoklch(57.29% 0.222 330.3)
XYZxyz(29.8299, 16.0590, 44.6998)
Luminance0.1606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31B4 #31BB38
analogous
#7D31BB #BB31B4 #BB316F
triadic
#BB31B4 #B4BB31 #31B4BB
tetradic
#BB31B4 #BB7D31 #31BB38 #316FBB
square
#BB31B4 #BB7D31 #31BB38 #316FBB
split-complementary
#BB31B4 #6FBB31 #31BB7D
monochromatic
#5A1857 #8B2485 #BB31B4 #D356CD #E087DB

Accessibility & contrast

On white

4.99
#BB31B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#BB31B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31B4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31B4#FFFFFF#000000##FFFFFF
##BB31B41.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2064B8
Deuteranopia (green-blind)
#5B76B1
Tritanopia (blue-blind)
#C24470
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bb31b4;
/* rgb */ color: rgb(187, 49, 180);
/* oklch */ color: oklch(57.3% 0.222 330.3);
Tailwind
colors: {
  custom: {
    50: '#d377cb',
    500: '#bb31b4',
    950: '#000000',
  },
}
SCSS
$custom: #bb31b4;
$custom-light: #d377cb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31b4",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 303.043,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57291,
    "c": 0.22214,
    "h": 330.3
  },
  "luminance": 0.16057
}

Semantic roles & 50–950 ramp

primary
#BB31B4
secondary
#7FC982
accent
#E24E46
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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