#BB31A4#BB31A4

#BB31A4 is a mid, highly saturated pink. Relative luminance 0.154; OKLCH L 56.4% C 0.211 H 335.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BB31A4
RGBrgb(187, 49, 164)
HSLhsl(310, 58%, 46%)
HSVhsv(310, 74%, 73%)
CMYKcmyk(0%, 73.8%, 12.3%, 26.7%)
CIE-LABlab(46.24, 65.59, -31.76)
CIE-LCHlch(46.24, 72.87, 334.16°)
OKLaboklab(56.44% 0.192 -0.0867)
OKLCHoklch(56.44% 0.211 335.7)
XYZxyz(28.2931, 15.4443, 36.6057)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A4 #31BB48
analogous
#8D31BB #BB31A4 #BB315F
triadic
#BB31A4 #A4BB31 #31A4BB
tetradic
#BB31A4 #BB8D31 #31BB48 #315FBB
square
#BB31A4 #BB8D31 #31BB48 #315FBB
split-complementary
#BB31A4 #5FBB31 #31BB8D
monochromatic
#5A184F #8B2479 #BB31A4 #D356BE #E087D1

Accessibility & contrast

On white

5.14
#BB31A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#BB31A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31A4
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31A4#FFFFFF#000000##FFFFFF
##BB31A41.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3260A7
Deuteranopia (green-blind)
#6375A1
Tritanopia (blue-blind)
#C53B67
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb31a4;
/* rgb */ color: rgb(187, 49, 164);
/* oklch */ color: oklch(56.4% 0.211 335.7);
Tailwind
colors: {
  custom: {
    50: '#d377bf',
    500: '#bb31a4',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a4;
$custom-light: #d377bf;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a4",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 310,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56441,
    "c": 0.21067,
    "h": 335.7
  },
  "luminance": 0.15442
}

Semantic roles & 50–950 ramp

primary
#BB31A4
secondary
#7FC98B
accent
#E26046
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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