#BB51D9#BB51D9

#BB51D9 is a light, highly saturated purple. Relative luminance 0.215; OKLCH L 62.6% C 0.214 H 318.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#BB51D9
RGBrgb(187, 81, 217)
HSLhsl(287, 64%, 58%)
HSVhsv(287, 63%, 85%)
CMYKcmyk(13.8%, 62.7%, 0%, 14.9%)
CIE-LABlab(53.45, 62.27, -51.11)
CIE-LCHlch(53.45, 80.56, 320.62°)
OKLaboklab(62.55% 0.1594 -0.143)
OKLCHoklch(62.55% 0.214 318.1)
XYZxyz(35.9586, 21.4609, 67.8804)
Luminance0.2146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51D9 #6FD951
analogous
#7751D9 #BB51D9 #D951B3
triadic
#BB51D9 #D9BB51 #51D9BB
tetradic
#BB51D9 #D97751 #6FD951 #51B3D9
square
#BB51D9 #D97751 #6FD951 #51B3D9
split-complementary
#BB51D9 #B3D951 #51D977
monochromatic
#771F90 #A12AC2 #BB51D9 #CF83E4 #E2B5EF

Accessibility & contrast

On white

3.97
#BB51D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#BB51D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB51D9
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB51D9#FFFFFF#000000##000000
##BB51D91.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2779DD
Deuteranopia (green-blind)
#5783D6
Tritanopia (blue-blind)
#BA698E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #bb51d9;
/* rgb */ color: rgb(187, 81, 217);
/* oklch */ color: oklch(62.6% 0.214 318.1);
Tailwind
colors: {
  custom: {
    50: '#d388e5',
    500: '#bb51d9',
    950: '#000000',
  },
}
SCSS
$custom: #bb51d9;
$custom-light: #d388e5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51d9",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 286.765,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.62552,
    "c": 0.2141,
    "h": 318.1
  },
  "luminance": 0.21459
}

Semantic roles & 50–950 ramp

primary
#BB51D9
secondary
#B4DEA8
accent
#E74165
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BB51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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