#BB51BD#BB51BD

#BB51BD is a mid, vivid purple. Relative luminance 0.201; OKLCH L 61.0% C 0.189 H 326.9°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BB51BD
RGBrgb(187, 81, 189)
HSLhsl(299, 45%, 53%)
HSVhsv(299, 57%, 74%)
CMYKcmyk(1.1%, 57.1%, 0%, 25.9%)
CIE-LABlab(51.98, 57.06, -37.40)
CIE-LCHlch(51.98, 68.22, 326.75°)
OKLaboklab(61.01% 0.158 -0.1031)
OKLCHoklch(61.01% 0.189 326.9)
XYZxyz(32.6207, 20.1257, 50.3007)
Luminance0.2012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51BD #53BD51
analogous
#8551BD #BB51BD #BD5189
triadic
#BB51BD #BDBB51 #51BDBB
tetradic
#BB51BD #BD8551 #53BD51 #5189BD
square
#BB51BD #BD8551 #53BD51 #5189BD
split-complementary
#BB51BD #89BD51 #51BD85
monochromatic
#6A296B #963997 #BB51BD #CC7DCE #DEAADF

Accessibility & contrast

On white

4.18
#BB51BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#BB51BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB51BD
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB51BD#FFFFFF#000000##000000
##BB51BD1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4473C0
Deuteranopia (green-blind)
#6881BA
Tritanopia (blue-blind)
#C05E7F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #bb51bd;
/* rgb */ color: rgb(187, 81, 189);
/* oklch */ color: oklch(61.0% 0.189 326.9);
Tailwind
colors: {
  custom: {
    50: '#d288d1',
    500: '#bb51bd',
    950: '#000000',
  },
}
SCSS
$custom: #bb51bd;
$custom-light: #d288d1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51bd",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 298.889,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61006,
    "c": 0.18869,
    "h": 326.9
  },
  "luminance": 0.20124
}

Semantic roles & 50–950 ramp

primary
#BB51BD
secondary
#9ECC9E
accent
#D55356
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BB51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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