#BB31A0#BB31A0

#BB31A0 is a mid, highly saturated pink. Relative luminance 0.153; OKLCH L 56.2% C 0.208 H 337.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BB31A0
RGBrgb(187, 49, 160)
HSLhsl(312, 58%, 46%)
HSVhsv(312, 74%, 73%)
CMYKcmyk(0%, 73.8%, 14.4%, 26.7%)
CIE-LABlab(46.05, 65.01, -29.68)
CIE-LCHlch(46.05, 71.46, 335.46°)
OKLaboklab(56.24% 0.1916 -0.0807)
OKLCHoklch(56.24% 0.208 337.2)
XYZxyz(27.9375, 15.3021, 34.7331)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A0 #31BB4C
analogous
#9131BB #BB31A0 #BB315B
triadic
#BB31A0 #A0BB31 #31A0BB
tetradic
#BB31A0 #BB9131 #31BB4C #315BBB
square
#BB31A0 #BB9131 #31BB4C #315BBB
split-complementary
#BB31A0 #5BBB31 #31BB91
monochromatic
#5A184D #8B2477 #BB31A0 #D356BA #E087CE

Accessibility & contrast

On white

5.17
#BB31A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#BB31A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31A0
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31A0#FFFFFF#000000##FFFFFF
##BB31A01.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3560A3
Deuteranopia (green-blind)
#65759D
Tritanopia (blue-blind)
#C53965
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb31a0;
/* rgb */ color: rgb(187, 49, 160);
/* oklch */ color: oklch(56.2% 0.208 337.2);
Tailwind
colors: {
  custom: {
    50: '#d377bc',
    500: '#bb31a0',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a0;
$custom-light: #d377bc;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a0",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 311.739,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5624,
    "c": 0.20794,
    "h": 337.2
  },
  "luminance": 0.15299
}

Semantic roles & 50–950 ramp

primary
#BB31A0
secondary
#7FC98D
accent
#E26546
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB31A0

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

Preview Lab → · Contrast checker → · Palette generator →

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