#BB51C2#BB51C2

#BB51C2 is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.3% C 0.193 H 325.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BB51C2
RGBrgb(187, 81, 194)
HSLhsl(296, 48%, 54%)
HSVhsv(296, 58%, 76%)
CMYKcmyk(3.6%, 58.2%, 0%, 23.9%)
CIE-LABlab(52.23, 57.95, -39.90)
CIE-LCHlch(52.23, 70.36, 325.45°)
OKLaboklab(61.27% 0.1585 -0.1104)
OKLCHoklch(61.27% 0.193 325.1)
XYZxyz(33.1728, 20.3466, 53.2085)
Luminance0.2034 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51C2 #58C251
analogous
#8351C2 #BB51C2 #C25191
triadic
#BB51C2 #C2BB51 #51C2BB
tetradic
#BB51C2 #C28351 #58C251 #5191C2
square
#BB51C2 #C28351 #58C251 #5191C2
split-complementary
#BB51C2 #91C251 #51C283
monochromatic
#6C2871 #98379E #BB51C2 #CD7ED2 #DEACE2

Accessibility & contrast

On white

4.14
#BB51C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#BB51C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB51C2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB51C2#FFFFFF#000000##000000
##BB51C21.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4074C6
Deuteranopia (green-blind)
#6581BF
Tritanopia (blue-blind)
#BF6082
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #bb51c2;
/* rgb */ color: rgb(187, 81, 194);
/* oklch */ color: oklch(61.3% 0.193 325.1);
Tailwind
colors: {
  custom: {
    50: '#d288d5',
    500: '#bb51c2',
    950: '#000000',
  },
}
SCSS
$custom: #bb51c2;
$custom-light: #d288d5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51c2",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 296.283,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61267,
    "c": 0.1931,
    "h": 325.1
  },
  "luminance": 0.20345
}

Semantic roles & 50–950 ramp

primary
#BB51C2
secondary
#A2D09F
accent
#D85059
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BB51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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