#BB51BC#BB51BC

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

Color values

HEX#BB51BC
RGBrgb(187, 81, 188)
HSLhsl(299, 44%, 53%)
HSVhsv(299, 57%, 74%)
CMYKcmyk(0.5%, 56.9%, 0%, 26.3%)
CIE-LABlab(51.93, 56.88, -36.90)
CIE-LCHlch(51.93, 67.80, 327.03°)
OKLaboklab(60.95% 0.1579 -0.1017)
OKLCHoklch(60.95% 0.188 327.2)
XYZxyz(32.5125, 20.0825, 49.7310)
Luminance0.2008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51BC #52BC51
analogous
#8551BC #BB51BC #BC5188
triadic
#BB51BC #BCBB51 #51BCBB
tetradic
#BB51BC #BC8551 #52BC51 #5188BC
square
#BB51BC #BC8551 #52BC51 #5188BC
split-complementary
#BB51BC #88BC51 #51BC85
monochromatic
#69296A #953A96 #BB51BC #CC7DCD #DEA9DE

Accessibility & contrast

On white

4.19
#BB51BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BB51BC#FFFFFF#000000##000000
##BB51BC1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4573BF
Deuteranopia (green-blind)
#6881B9
Tritanopia (blue-blind)
#C05E7F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #bb51bc;
/* rgb */ color: rgb(187, 81, 188);
/* oklch */ color: oklch(61.0% 0.188 327.2);
Tailwind
colors: {
  custom: {
    50: '#d288d0',
    500: '#bb51bc',
    950: '#000000',
  },
}
SCSS
$custom: #bb51bc;
$custom-light: #d288d0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51bc",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 299.439,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60954,
    "c": 0.18782,
    "h": 327.2
  },
  "luminance": 0.2008
}

Semantic roles & 50–950 ramp

primary
#BB51BC
secondary
#9ECC9D
accent
#D45455
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BB51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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