#BB31A8#BB31A8

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

Color values

HEX#BB31A8
RGBrgb(187, 49, 168)
HSLhsl(308, 58%, 46%)
HSVhsv(308, 74%, 73%)
CMYKcmyk(0%, 73.8%, 10.2%, 26.7%)
CIE-LABlab(46.43, 66.18, -33.83)
CIE-LCHlch(46.43, 74.32, 332.92°)
OKLaboklab(56.65% 0.1923 -0.0926)
OKLCHoklch(56.65% 0.213 334.3)
XYZxyz(28.6600, 15.5911, 38.5381)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A8 #31BB44
analogous
#8931BB #BB31A8 #BB3163
triadic
#BB31A8 #A8BB31 #31A8BB
tetradic
#BB31A8 #BB8931 #31BB44 #3163BB
square
#BB31A8 #BB8931 #31BB44 #3163BB
split-complementary
#BB31A8 #63BB31 #31BB89
monochromatic
#5A1851 #8B247C #BB31A8 #D356C2 #E087D3

Accessibility & contrast

On white

5.10
#BB31A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BB31A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31A8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31A8#FFFFFF#000000##FFFFFF
##BB31A81.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E61AB
Deuteranopia (green-blind)
#6175A5
Tritanopia (blue-blind)
#C43E69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bb31a8;
/* rgb */ color: rgb(187, 49, 168);
/* oklch */ color: oklch(56.6% 0.213 334.3);
Tailwind
colors: {
  custom: {
    50: '#d377c2',
    500: '#bb31a8',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a8;
$custom-light: #d377c2;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a8",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 308.261,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56646,
    "c": 0.21347,
    "h": 334.3
  },
  "luminance": 0.15589
}

Semantic roles & 50–950 ramp

primary
#BB31A8
secondary
#7FC989
accent
#E25C46
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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