#BB51C7#BB51C7

#BB51C7 is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.5% C 0.198 H 323.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BB51C7
RGBrgb(187, 81, 199)
HSLhsl(294, 51%, 55%)
HSVhsv(294, 59%, 78%)
CMYKcmyk(6%, 59.3%, 0%, 22%)
CIE-LABlab(52.48, 58.86, -42.38)
CIE-LCHlch(52.48, 72.53, 324.25°)
OKLaboklab(61.54% 0.1588 -0.1175)
OKLCHoklch(61.54% 0.198 323.5)
XYZxyz(33.7438, 20.5750, 56.2157)
Luminance0.2057 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51C7 #5DC751
analogous
#8051C7 #BB51C7 #C75198
triadic
#BB51C7 #C7BB51 #51C7BB
tetradic
#BB51C7 #C78051 #5DC751 #5198C7
square
#BB51C7 #C78051 #5DC751 #5198C7
split-complementary
#BB51C7 #98C751 #51C780
monochromatic
#6F2677 #9A35A6 #BB51C7 #CD7FD6 #DFAEE5

Accessibility & contrast

On white

4.11
#BB51C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#BB51C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB51C7
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB51C7#FFFFFF#000000##000000
##BB51C71.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C75CB
Deuteranopia (green-blind)
#6282C4
Tritanopia (blue-blind)
#BE6285
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #bb51c7;
/* rgb */ color: rgb(187, 81, 199);
/* oklch */ color: oklch(61.5% 0.198 323.5);
Tailwind
colors: {
  custom: {
    50: '#d288d8',
    500: '#bb51c7',
    950: '#000000',
  },
}
SCSS
$custom: #bb51c7;
$custom-light: #d288d8;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51c7",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 199
  },
  "hsl": {
    "h": 293.898,
    "s": 51.304,
    "l": 54.902
  },
  "oklch": {
    "l": 0.61535,
    "c": 0.19758,
    "h": 323.5
  },
  "luminance": 0.20573
}

Semantic roles & 50–950 ramp

primary
#BB51C7
secondary
#A6D3A1
accent
#DB4D5B
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BB51C7

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

Preview Lab → · Contrast checker → · Palette generator →

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