#BB51B8#BB51B8

#BB51B8 is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.8% C 0.184 H 328.7°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BB51B8
RGBrgb(187, 81, 184)
HSLhsl(302, 44%, 53%)
HSVhsv(302, 57%, 73%)
CMYKcmyk(0%, 56.7%, 1.6%, 26.7%)
CIE-LABlab(51.74, 56.18, -34.89)
CIE-LCHlch(51.74, 66.13, 328.16°)
OKLaboklab(60.75% 0.1575 -0.0959)
OKLCHoklch(60.75% 0.184 328.7)
XYZxyz(32.0873, 19.9124, 47.4915)
Luminance0.1991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51B8 #51BB54
analogous
#8951BB #BB51B8 #BB5183
triadic
#BB51B8 #B8BB51 #51B8BB
tetradic
#BB51B8 #BB8951 #51BB54 #5183BB
square
#BB51B8 #BB8951 #51BB54 #5183BB
split-complementary
#BB51B8 #83BB51 #51BB89
monochromatic
#692967 #953A92 #BB51B8 #CC7DCA #DDA9DC

Accessibility & contrast

On white

4.22
#BB51B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#BB51B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB51B8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB51B8#FFFFFF#000000##000000
##BB51B81.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4872BB
Deuteranopia (green-blind)
#6A80B5
Tritanopia (blue-blind)
#C15D7D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #bb51b8;
/* rgb */ color: rgb(187, 81, 184);
/* oklch */ color: oklch(60.8% 0.184 328.7);
Tailwind
colors: {
  custom: {
    50: '#d287cd',
    500: '#bb51b8',
    950: '#000000',
  },
}
SCSS
$custom: #bb51b8;
$custom-light: #d287cd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51b8",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 184
  },
  "hsl": {
    "h": 301.698,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60751,
    "c": 0.18436,
    "h": 328.7
  },
  "luminance": 0.1991
}

Semantic roles & 50–950 ramp

primary
#BB51B8
secondary
#9DCB9E
accent
#D45854
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C13
muted
#837D82

Preview Lab

Preview with #BB51B8

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

Preview Lab → · Contrast checker → · Palette generator →

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