#BB31A1#BB31A1

#BB31A1 is a mid, highly saturated pink. Relative luminance 0.153; OKLCH L 56.3% C 0.209 H 336.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BB31A1
RGBrgb(187, 49, 161)
HSLhsl(311, 58%, 46%)
HSVhsv(311, 74%, 73%)
CMYKcmyk(0%, 73.8%, 13.9%, 26.7%)
CIE-LABlab(46.09, 65.15, -30.20)
CIE-LCHlch(46.09, 71.81, 335.13°)
OKLaboklab(56.29% 0.1917 -0.0822)
OKLCHoklch(56.29% 0.209 336.8)
XYZxyz(28.0254, 15.3372, 35.1957)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A1 #31BB4B
analogous
#9031BB #BB31A1 #BB315C
triadic
#BB31A1 #A1BB31 #31A1BB
tetradic
#BB31A1 #BB9031 #31BB4B #315CBB
square
#BB31A1 #BB9031 #31BB4B #315CBB
split-complementary
#BB31A1 #5CBB31 #31BB90
monochromatic
#5A184E #8B2477 #BB31A1 #D356BB #E087CF

Accessibility & contrast

On white

5.16
#BB31A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BB31A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31A1
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31A1#FFFFFF#000000##FFFFFF
##BB31A11.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3560A4
Deuteranopia (green-blind)
#64759E
Tritanopia (blue-blind)
#C53A66
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb31a1;
/* rgb */ color: rgb(187, 49, 161);
/* oklch */ color: oklch(56.3% 0.209 336.8);
Tailwind
colors: {
  custom: {
    50: '#d377bd',
    500: '#bb31a1',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a1;
$custom-light: #d377bd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a1",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 311.304,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5629,
    "c": 0.20861,
    "h": 336.8
  },
  "luminance": 0.15335
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB31A1

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

Preview Lab → · Contrast checker → · Palette generator →

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