#BB31A3#BB31A3

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

Color values

HEX#BB31A3
RGBrgb(187, 49, 163)
HSLhsl(310, 58%, 46%)
HSVhsv(310, 74%, 73%)
CMYKcmyk(0%, 73.8%, 12.8%, 26.7%)
CIE-LABlab(46.19, 65.44, -31.24)
CIE-LCHlch(46.19, 72.52, 334.48°)
OKLaboklab(56.39% 0.1919 -0.0852)
OKLCHoklch(56.39% 0.21 336.1)
XYZxyz(28.2031, 15.4083, 36.1320)
Luminance0.1541 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31A3 #31BB49
analogous
#8E31BB #BB31A3 #BB315E
triadic
#BB31A3 #A3BB31 #31A3BB
tetradic
#BB31A3 #BB8E31 #31BB49 #315EBB
square
#BB31A3 #BB8E31 #31BB49 #315EBB
split-complementary
#BB31A3 #5EBB31 #31BB8E
monochromatic
#5A184E #8B2479 #BB31A3 #D356BD #E087D0

Accessibility & contrast

On white

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

On black

4.08
#BB31A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BB31A3#FFFFFF#000000##FFFFFF
##BB31A31.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A6
Deuteranopia (green-blind)
#6375A0
Tritanopia (blue-blind)
#C53B67
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb31a3;
/* rgb */ color: rgb(187, 49, 163);
/* oklch */ color: oklch(56.4% 0.210 336.1);
Tailwind
colors: {
  custom: {
    50: '#d377be',
    500: '#bb31a3',
    950: '#000000',
  },
}
SCSS
$custom: #bb31a3;
$custom-light: #d377be;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31a3",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 310.435,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5639,
    "c": 0.20999,
    "h": 336.1
  },
  "luminance": 0.15406
}

Semantic roles & 50–950 ramp

primary
#BB31A3
secondary
#7FC98C
accent
#E26146
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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