#BB51B2#BB51B2

#BB51B2 is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.5% C 0.179 H 330.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BB51B2
RGBrgb(187, 81, 178)
HSLhsl(305, 44%, 53%)
HSVhsv(305, 57%, 73%)
CMYKcmyk(0%, 56.7%, 4.8%, 26.7%)
CIE-LABlab(51.46, 55.15, -31.84)
CIE-LCHlch(51.46, 63.68, 330.00°)
OKLaboklab(60.45% 0.1567 -0.0871)
OKLCHoklch(60.45% 0.179 330.9)
XYZxyz(31.4717, 19.6661, 44.2492)
Luminance0.1966 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51B2 #51BB5A
analogous
#8F51BB #BB51B2 #BB517D
triadic
#BB51B2 #B2BB51 #51B2BB
tetradic
#BB51B2 #BB8F51 #51BB5A #517DBB
square
#BB51B2 #BB8F51 #51BB5A #517DBB
split-complementary
#BB51B2 #7DBB51 #51BB8F
monochromatic
#692963 #953A8D #BB51B2 #CC7DC5 #DDA9D9

Accessibility & contrast

On white

4.26
#BB51B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#BB51B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB51B2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB51B2#FFFFFF#000000##000000
##BB51B21.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B71B5
Deuteranopia (green-blind)
#6D80AF
Tritanopia (blue-blind)
#C25A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #bb51b2;
/* rgb */ color: rgb(187, 81, 178);
/* oklch */ color: oklch(60.5% 0.179 330.9);
Tailwind
colors: {
  custom: {
    50: '#d287c9',
    500: '#bb51b2',
    950: '#000000',
  },
}
SCSS
$custom: #bb51b2;
$custom-light: #d287c9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51b2",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 305.094,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60454,
    "c": 0.17928,
    "h": 330.9
  },
  "luminance": 0.19664
}

Semantic roles & 50–950 ramp

primary
#BB51B2
secondary
#9DCBA1
accent
#D45F54
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BB51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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