#BB31BB#BB31BB

#BB31BB is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.7% C 0.227 H 328.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BB31BB
RGBrgb(187, 49, 187)
HSLhsl(300, 58%, 46%)
HSVhsv(300, 74%, 73%)
CMYKcmyk(0%, 73.8%, 0%, 26.7%)
CIE-LABlab(47.43, 69.13, -43.43)
CIE-LCHlch(47.43, 81.64, 327.86°)
OKLaboklab(57.69% 0.1929 -0.1204)
OKLCHoklch(57.69% 0.227 328)
XYZxyz(30.5611, 16.3515, 48.5506)
Luminance0.1635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31BB #31BB31
analogous
#7631BB #BB31BB #BB3176
triadic
#BB31BB #BBBB31 #31BBBB
tetradic
#BB31BB #BB7631 #31BB31 #3176BB
square
#BB31BB #BB7631 #31BB31 #3176BB
split-complementary
#BB31BB #76BB31 #31BB76
monochromatic
#5A185A #8B248B #BB31BB #D356D3 #E087E0

Accessibility & contrast

On white

4.92
#BB31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#BB31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31BB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31BB#FFFFFF#000000##FFFFFF
##BB31BB1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1265BF
Deuteranopia (green-blind)
#5777B8
Tritanopia (blue-blind)
#C14774
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bb31bb;
/* rgb */ color: rgb(187, 49, 187);
/* oklch */ color: oklch(57.7% 0.227 328.0);
Tailwind
colors: {
  custom: {
    50: '#d378d0',
    500: '#bb31bb',
    950: '#000000',
  },
}
SCSS
$custom: #bb31bb;
$custom-light: #d378d0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31bb",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 300,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57686,
    "c": 0.22736,
    "h": 328
  },
  "luminance": 0.16349
}

Semantic roles & 50–950 ramp

primary
#BB31BB
secondary
#7FC97F
accent
#E24646
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BB31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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