#BB31A2#BB31A2

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

Color values

HEX#BB31A2
RGBrgb(187, 49, 162)
HSLhsl(311, 58%, 46%)
HSVhsv(311, 74%, 73%)
CMYKcmyk(0%, 73.8%, 13.4%, 26.7%)
CIE-LABlab(46.14, 65.30, -30.72)
CIE-LCHlch(46.14, 72.16, 334.80°)
OKLaboklab(56.34% 0.1918 -0.0837)
OKLCHoklch(56.34% 0.209 336.4)
XYZxyz(28.1139, 15.3726, 35.6620)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A2 #31BB4A
analogous
#8F31BB #BB31A2 #BB315D
triadic
#BB31A2 #A2BB31 #31A2BB
tetradic
#BB31A2 #BB8F31 #31BB4A #315DBB
square
#BB31A2 #BB8F31 #31BB4A #315DBB
split-complementary
#BB31A2 #5DBB31 #31BB8F
monochromatic
#5A184E #8B2478 #BB31A2 #D356BC #E087CF

Accessibility & contrast

On white

5.15
#BB31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BB31A2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31A2#FFFFFF#000000##FFFFFF
##BB31A21.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A5
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#C53A66
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb31a2;
/* rgb */ color: rgb(187, 49, 162);
/* oklch */ color: oklch(56.3% 0.209 336.4);
Tailwind
colors: {
  custom: {
    50: '#d377be',
    500: '#bb31a2',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a2;
$custom-light: #d377be;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a2",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 310.87,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5634,
    "c": 0.2093,
    "h": 336.4
  },
  "luminance": 0.1537
}

Semantic roles & 50–950 ramp

primary
#BB31A2
secondary
#7FC98C
accent
#E26246
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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