#BB31A7#BB31A7

#BB31A7 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.6% C 0.213 H 334.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BB31A7
RGBrgb(187, 49, 167)
HSLhsl(309, 58%, 46%)
HSVhsv(309, 74%, 73%)
CMYKcmyk(0%, 73.8%, 10.7%, 26.7%)
CIE-LABlab(46.38, 66.03, -33.31)
CIE-LCHlch(46.38, 73.96, 333.23°)
OKLaboklab(56.59% 0.1923 -0.0911)
OKLCHoklch(56.59% 0.213 334.6)
XYZxyz(28.5672, 15.5540, 38.0494)
Luminance0.1555 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A7 #31BB45
analogous
#8A31BB #BB31A7 #BB3162
triadic
#BB31A7 #A7BB31 #31A7BB
tetradic
#BB31A7 #BB8A31 #31BB45 #3162BB
square
#BB31A7 #BB8A31 #31BB45 #3162BB
split-complementary
#BB31A7 #62BB31 #31BB8A
monochromatic
#5A1850 #8B247C #BB31A7 #D356C1 #E087D3

Accessibility & contrast

On white

5.11
#BB31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BB31A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31A7
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31A7#FFFFFF#000000##FFFFFF
##BB31A71.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AA
Deuteranopia (green-blind)
#6275A4
Tritanopia (blue-blind)
#C43D69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bb31a7;
/* rgb */ color: rgb(187, 49, 167);
/* oklch */ color: oklch(56.6% 0.213 334.6);
Tailwind
colors: {
  custom: {
    50: '#d377c1',
    500: '#bb31a7',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a7;
$custom-light: #d377c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a7",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 308.696,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56594,
    "c": 0.21276,
    "h": 334.6
  },
  "luminance": 0.15551
}

Semantic roles & 50–950 ramp

primary
#BB31A7
secondary
#7FC989
accent
#E25D46
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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