#BB31B9#BB31B9

#BB31B9 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.226 H 328.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BB31B9
RGBrgb(187, 49, 185)
HSLhsl(301, 58%, 46%)
HSVhsv(301, 74%, 73%)
CMYKcmyk(0%, 73.8%, 1.1%, 26.7%)
CIE-LABlab(47.32, 68.81, -42.43)
CIE-LCHlch(47.32, 80.84, 328.34°)
OKLaboklab(57.57% 0.1929 -0.1175)
OKLCHoklch(57.57% 0.226 328.7)
XYZxyz(30.3485, 16.2665, 47.4308)
Luminance0.1626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31B9 #31BB33
analogous
#7831BB #BB31B9 #BB3174
triadic
#BB31B9 #B9BB31 #31B9BB
tetradic
#BB31B9 #BB7831 #31BB33 #3174BB
square
#BB31B9 #BB7831 #31BB33 #3174BB
split-complementary
#BB31B9 #74BB31 #31BB78
monochromatic
#5A1859 #8B2489 #BB31B9 #D356D1 #E087DE

Accessibility & contrast

On white

4.94
#BB31B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#BB31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31B9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31B9#FFFFFF#000000##FFFFFF
##BB31B91.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1765BD
Deuteranopia (green-blind)
#5877B6
Tritanopia (blue-blind)
#C14673
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bb31b9;
/* rgb */ color: rgb(187, 49, 185);
/* oklch */ color: oklch(57.6% 0.226 328.7);
Tailwind
colors: {
  custom: {
    50: '#d378ce',
    500: '#bb31b9',
    950: '#000000',
  },
}
SCSS
$custom: #bb31b9;
$custom-light: #d378ce;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31b9",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 300.87,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57571,
    "c": 0.22587,
    "h": 328.7
  },
  "luminance": 0.16264
}

Semantic roles & 50–950 ramp

primary
#BB31B9
secondary
#7FC980
accent
#E24846
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BB31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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