#BB31B3#BB31B3

#BB31B3 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.2% C 0.221 H 330.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BB31B3
RGBrgb(187, 49, 179)
HSLhsl(303, 58%, 46%)
HSVhsv(303, 74%, 73%)
CMYKcmyk(0%, 73.8%, 4.3%, 26.7%)
CIE-LABlab(47.00, 67.86, -39.43)
CIE-LCHlch(47.00, 78.48, 329.84°)
OKLaboklab(57.24% 0.1929 -0.1088)
OKLCHoklch(57.24% 0.221 330.6)
XYZxyz(29.7284, 16.0184, 44.1652)
Luminance0.1602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31B3 #31BB39
analogous
#7E31BB #BB31B3 #BB316E
triadic
#BB31B3 #B3BB31 #31B3BB
tetradic
#BB31B3 #BB7E31 #31BB39 #316EBB
square
#BB31B3 #BB7E31 #31BB39 #316EBB
split-complementary
#BB31B3 #6EBB31 #31BB7E
monochromatic
#5A1856 #8B2485 #BB31B3 #D356CC #E087DA

Accessibility & contrast

On white

5.00
#BB31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#BB31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31B3
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31B3#FFFFFF#000000##FFFFFF
##BB31B31.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2263B7
Deuteranopia (green-blind)
#5C76B0
Tritanopia (blue-blind)
#C24370
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bb31b3;
/* rgb */ color: rgb(187, 49, 179);
/* oklch */ color: oklch(57.2% 0.221 330.6);
Tailwind
colors: {
  custom: {
    50: '#d377ca',
    500: '#bb31b3',
    950: '#000000',
  },
}
SCSS
$custom: #bb31b3;
$custom-light: #d377ca;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31b3",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 303.478,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57235,
    "c": 0.2214,
    "h": 330.6
  },
  "luminance": 0.16016
}

Semantic roles & 50–950 ramp

primary
#BB31B3
secondary
#7FC983
accent
#E24F46
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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