#BB31A9#BB31A9

#BB31A9 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.214 H 333.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BB31A9
RGBrgb(187, 49, 169)
HSLhsl(308, 58%, 46%)
HSVhsv(308, 74%, 73%)
CMYKcmyk(0%, 73.8%, 9.6%, 26.7%)
CIE-LABlab(46.48, 66.33, -34.34)
CIE-LCHlch(46.48, 74.69, 332.63°)
OKLaboklab(56.7% 0.1924 -0.0941)
OKLCHoklch(56.7% 0.214 333.9)
XYZxyz(28.7535, 15.6285, 39.0307)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A9 #31BB43
analogous
#8831BB #BB31A9 #BB3164
triadic
#BB31A9 #A9BB31 #31A9BB
tetradic
#BB31A9 #BB8831 #31BB43 #3164BB
square
#BB31A9 #BB8831 #31BB43 #3164BB
split-complementary
#BB31A9 #64BB31 #31BB88
monochromatic
#5A1851 #8B247D #BB31A9 #D356C3 #E087D4

Accessibility & contrast

On white

5.09
#BB31A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BB31A9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31A9#FFFFFF#000000##FFFFFF
##BB31A91.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D61AC
Deuteranopia (green-blind)
#6175A6
Tritanopia (blue-blind)
#C43E6A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bb31a9;
/* rgb */ color: rgb(187, 49, 169);
/* oklch */ color: oklch(56.7% 0.214 333.9);
Tailwind
colors: {
  custom: {
    50: '#d377c3',
    500: '#bb31a9',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a9;
$custom-light: #d377c3;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a9",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 307.826,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56698,
    "c": 0.21418,
    "h": 333.9
  },
  "luminance": 0.15626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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