#BB51FF#BB51FF

#BB51FF is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.9% C 0.250 H 308.9°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#BB51FF
RGBrgb(187, 81, 255)
HSLhsl(277, 100%, 66%)
HSVhsv(277, 68%, 100%)
CMYKcmyk(26.7%, 68.2%, 0%, 0%)
CIE-LABlab(55.76, 69.97, -68.71)
CIE-LCHlch(55.76, 98.06, 315.52°)
OKLaboklab(64.95% 0.1571 -0.1945)
OKLCHoklch(64.95% 0.25 308.9)
XYZxyz(41.4823, 23.6704, 96.9719)
Luminance0.2367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB51FF #95FF51
analogous
#6451FF #BB51FF #FF51EC
triadic
#BB51FF #FFBB51 #51FFBB
tetradic
#BB51FF #FF6451 #95FF51 #51ECFF
square
#BB51FF #FF6451 #95FF51 #51ECFF
split-complementary
#BB51FF #ECFF51 #51FF64
monochromatic
#8200D6 #A314FF #BB51FF #D38EFF #EBCBFF

Accessibility & contrast

On white

3.66
#BB51FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#BB51FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB51FF
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB51FF#FFFFFF#000000##000000
##BB51FF1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#2C87FB
Tritanopia (blue-blind)
#B177A2
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #bb51ff;
/* rgb */ color: rgb(187, 81, 255);
/* oklch */ color: oklch(64.9% 0.250 308.9);
Tailwind
colors: {
  custom: {
    50: '#d489ff',
    500: '#bb51ff',
    950: '#000000',
  },
}
SCSS
$custom: #bb51ff;
$custom-light: #d489ff;
$custom-dark: #000000;
JSON
{
  "hex": "#bb51ff",
  "rgb": {
    "r": 187,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 276.552,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64946,
    "c": 0.25006,
    "h": 308.9
  },
  "luminance": 0.2367
}

Semantic roles & 50–950 ramp

primary
#BB51FF
secondary
#D0F3B9
accent
#E6005A
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #BB51FF

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

Preview Lab → · Contrast checker → · Palette generator →

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