#BB31AA#BB31AA

#BB31AA is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.215 H 333.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BB31AA
RGBrgb(187, 49, 170)
HSLhsl(307, 58%, 46%)
HSVhsv(307, 74%, 73%)
CMYKcmyk(0%, 73.8%, 9.1%, 26.7%)
CIE-LABlab(46.53, 66.48, -34.86)
CIE-LCHlch(46.53, 75.06, 332.33°)
OKLaboklab(56.75% 0.1925 -0.0956)
OKLCHoklch(56.75% 0.215 333.6)
XYZxyz(28.8477, 15.6662, 39.5270)
Luminance0.1566 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31AA #31BB42
analogous
#8731BB #BB31AA #BB3165
triadic
#BB31AA #AABB31 #31AABB
tetradic
#BB31AA #BB8731 #31BB42 #3165BB
square
#BB31AA #BB8731 #31BB42 #3165BB
split-complementary
#BB31AA #65BB31 #31BB87
monochromatic
#5A1852 #8B247E #BB31AA #D356C3 #E087D5

Accessibility & contrast

On white

5.08
#BB31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#BB31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31AA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31AA#FFFFFF#000000##FFFFFF
##BB31AA1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C62AD
Deuteranopia (green-blind)
#6075A7
Tritanopia (blue-blind)
#C43F6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bb31aa;
/* rgb */ color: rgb(187, 49, 170);
/* oklch */ color: oklch(56.8% 0.215 333.6);
Tailwind
colors: {
  custom: {
    50: '#d377c3',
    500: '#bb31aa',
    950: '#000000',
  },
}
SCSS
$custom: #bb31aa;
$custom-light: #d377c3;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31aa",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 307.391,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56751,
    "c": 0.21489,
    "h": 333.6
  },
  "luminance": 0.15664
}

Semantic roles & 50–950 ramp

primary
#BB31AA
secondary
#7FC988
accent
#E25946
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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