#BB31A6#BB31A6

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

Color values

HEX#BB31A6
RGBrgb(187, 49, 166)
HSLhsl(309, 58%, 46%)
HSVhsv(309, 74%, 73%)
CMYKcmyk(0%, 73.8%, 11.2%, 26.7%)
CIE-LABlab(46.33, 65.88, -32.80)
CIE-LCHlch(46.33, 73.59, 333.53°)
OKLaboklab(56.54% 0.1922 -0.0896)
OKLCHoklch(56.54% 0.212 335)
XYZxyz(28.4751, 15.5171, 37.5644)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A6 #31BB46
analogous
#8B31BB #BB31A6 #BB3161
triadic
#BB31A6 #A6BB31 #31A6BB
tetradic
#BB31A6 #BB8B31 #31BB46 #3161BB
square
#BB31A6 #BB8B31 #31BB46 #3161BB
split-complementary
#BB31A6 #61BB31 #31BB8B
monochromatic
#5A1850 #8B247B #BB31A6 #D356C0 #E087D2

Accessibility & contrast

On white

5.12
#BB31A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BB31A6
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31A6#FFFFFF#000000##FFFFFF
##BB31A61.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3061A9
Deuteranopia (green-blind)
#6275A3
Tritanopia (blue-blind)
#C43C68
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bb31a6;
/* rgb */ color: rgb(187, 49, 166);
/* oklch */ color: oklch(56.5% 0.212 335.0);
Tailwind
colors: {
  custom: {
    50: '#d377c1',
    500: '#bb31a6',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a6;
$custom-light: #d377c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a6",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 309.13,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56543,
    "c": 0.21207,
    "h": 335
  },
  "luminance": 0.15515
}

Semantic roles & 50–950 ramp

primary
#BB31A6
secondary
#7FC98A
accent
#E25E46
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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