#BB31C2#BB31C2

#BB31C2 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.1% C 0.233 H 325.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BB31C2
RGBrgb(187, 49, 194)
HSLhsl(297, 60%, 48%)
HSVhsv(297, 75%, 76%)
CMYKcmyk(3.6%, 74.7%, 0%, 23.9%)
CIE-LABlab(47.83, 70.27, -46.88)
CIE-LCHlch(47.83, 84.47, 326.29°)
OKLaboklab(58.09% 0.1927 -0.1304)
OKLCHoklch(58.09% 0.233 325.9)
XYZxyz(31.3288, 16.6586, 52.5938)
Luminance0.1666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB31C2 #38C231
analogous
#7231C2 #BB31C2 #C23181
triadic
#BB31C2 #C2BB31 #31C2BB
tetradic
#BB31C2 #C27231 #38C231 #3181C2
square
#BB31C2 #C27231 #38C231 #3181C2
split-complementary
#BB31C2 #81C231 #31C272
monochromatic
#5D1860 #8C2591 #BB31C2 #D05BD6 #DE8CE2

Accessibility & contrast

On white

4.85
#BB31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#BB31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB31C2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB31C2#FFFFFF#000000##FFFFFF
##BB31C21.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#5377BF
Tritanopia (blue-blind)
#C04A78
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bb31c2;
/* rgb */ color: rgb(187, 49, 194);
/* oklch */ color: oklch(58.1% 0.233 325.9);
Tailwind
colors: {
  custom: {
    50: '#d378d5',
    500: '#bb31c2',
    950: '#000000',
  },
}
SCSS
$custom: #bb31c2;
$custom-light: #d378d5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb31c2",
  "rgb": {
    "r": 187,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 297.103,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58094,
    "c": 0.23269,
    "h": 325.9
  },
  "luminance": 0.16656
}

Semantic roles & 50–950 ramp

primary
#BB31C2
secondary
#86CC83
accent
#E3454D
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BB31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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