#BB51E8#BB51E8

#BB51E8 is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.5% C 0.228 H 314.2°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#BB51E8
RGBrgb(187, 81, 232)
HSLhsl(282, 77%, 61%)
HSVhsv(282, 65%, 91%)
CMYKcmyk(19.4%, 65.1%, 0%, 9%)
CIE-LABlab(54.32, 65.24, -58.19)
CIE-LCHlch(54.32, 87.42, 318.27°)
OKLaboklab(63.46% 0.159 -0.1637)
OKLCHoklch(63.46% 0.228 314.2)
XYZxyz(37.9990, 22.2771, 78.6265)
Luminance0.2228 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51E8 #7EE851
analogous
#7051E8 #BB51E8 #E851CA
triadic
#BB51E8 #E8BB51 #51E8BB
tetradic
#BB51E8 #E87051 #7EE851 #51CAE8
square
#BB51E8 #E87051 #7EE851 #51CAE8
split-complementary
#BB51E8 #CAE851 #51E870
monochromatic
#7D16A8 #A51DDE #BB51E8 #D087EF #E5BDF6

Accessibility & contrast

On white

3.85
#BB51E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#BB51E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB51E8
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB51E8#FFFFFF#000000##000000
##BB51E81.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CED
Deuteranopia (green-blind)
#4A85E4
Tritanopia (blue-blind)
#B76E96
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #bb51e8;
/* rgb */ color: rgb(187, 81, 232);
/* oklch */ color: oklch(63.5% 0.228 314.2);
Tailwind
colors: {
  custom: {
    50: '#d389f0',
    500: '#bb51e8',
    950: '#000000',
  },
}
SCSS
$custom: #bb51e8;
$custom-light: #d389f0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51e8",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 282.119,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.63459,
    "c": 0.22819,
    "h": 314.2
  },
  "luminance": 0.22276
}

Semantic roles & 50–950 ramp

primary
#BB51E8
secondary
#BFE7AE
accent
#D90D4A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BB51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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