#BB31A5#BB31A5

#BB31A5 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.211 H 335.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#BB31A5
RGBrgb(187, 49, 165)
HSLhsl(310, 58%, 46%)
HSVhsv(310, 74%, 73%)
CMYKcmyk(0%, 73.8%, 11.8%, 26.7%)
CIE-LABlab(46.29, 65.73, -32.28)
CIE-LCHlch(46.29, 73.23, 333.84°)
OKLaboklab(56.49% 0.1921 -0.0882)
OKLCHoklch(56.49% 0.211 335.3)
XYZxyz(28.3837, 15.4806, 37.0832)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A5 #31BB47
analogous
#8C31BB #BB31A5 #BB3160
triadic
#BB31A5 #A5BB31 #31A5BB
tetradic
#BB31A5 #BB8C31 #31BB47 #3160BB
square
#BB31A5 #BB8C31 #31BB47 #3160BB
split-complementary
#BB31A5 #60BB31 #31BB8C
monochromatic
#5A184F #8B247A #BB31A5 #D356BF #E087D1

Accessibility & contrast

On white

5.13
#BB31A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BB31A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31A5
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31A5#FFFFFF#000000##FFFFFF
##BB31A51.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3161A8
Deuteranopia (green-blind)
#6275A2
Tritanopia (blue-blind)
#C43C68
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bb31a5;
/* rgb */ color: rgb(187, 49, 165);
/* oklch */ color: oklch(56.5% 0.211 335.3);
Tailwind
colors: {
  custom: {
    50: '#d377c0',
    500: '#bb31a5',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a5;
$custom-light: #d377c0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a5",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 309.565,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56492,
    "c": 0.21136,
    "h": 335.3
  },
  "luminance": 0.15478
}

Semantic roles & 50–950 ramp

primary
#BB31A5
secondary
#7FC98B
accent
#E25F46
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB31A5

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

Preview Lab → · Contrast checker → · Palette generator →

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