#BB51C8#BB51C8

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

Color values

HEX#BB51C8
RGBrgb(187, 81, 200)
HSLhsl(293, 52%, 55%)
HSVhsv(293, 60%, 78%)
CMYKcmyk(6.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(52.53, 59.05, -42.87)
CIE-LCHlch(52.53, 72.97, 324.02°)
OKLaboklab(61.59% 0.1589 -0.119)
OKLCHoklch(61.59% 0.198 323.2)
XYZxyz(33.8603, 20.6216, 56.8292)
Luminance0.2062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51C8 #5EC851
analogous
#7F51C8 #BB51C8 #C8519A
triadic
#BB51C8 #C8BB51 #51C8BB
tetradic
#BB51C8 #C87F51 #5EC851 #519AC8
square
#BB51C8 #C87F51 #5EC851 #519AC8
split-complementary
#BB51C8 #9AC851 #51C87F
monochromatic
#702679 #9B35A7 #BB51C8 #CD80D7 #DFAEE5

Accessibility & contrast

On white

4.10
#BB51C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#BB51C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB51C8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB51C8#FFFFFF#000000##000000
##BB51C81.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bb51c8;
/* rgb */ color: rgb(187, 81, 200);
/* oklch */ color: oklch(61.6% 0.198 323.2);
Tailwind
colors: {
  custom: {
    50: '#d288d9',
    500: '#bb51c8',
    950: '#000000',
  },
}
SCSS
$custom: #bb51c8;
$custom-light: #d288d9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51c8",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 293.445,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6159,
    "c": 0.19849,
    "h": 323.2
  },
  "luminance": 0.2062
}

Semantic roles & 50–950 ramp

primary
#BB51C8
secondary
#A7D3A1
accent
#DB4C5C
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C15
muted
#837D83

Preview Lab

Preview with #BB51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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