#BB27BB#BB27BB

#BB27BB is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 57.0% C 0.237 H 328.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BB27BB
RGBrgb(187, 39, 187)
HSLhsl(300, 65%, 44%)
HSVhsv(300, 79%, 73%)
CMYKcmyk(0%, 79.1%, 0%, 26.7%)
CIE-LABlab(46.45, 71.95, -44.99)
CIE-LCHlch(46.45, 84.85, 327.98°)
OKLaboklab(56.99% 0.2009 -0.1248)
OKLCHoklch(56.99% 0.237 328.1)
XYZxyz(30.1883, 15.6060, 48.4263)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB27BB #27BB27
analogous
#7127BB #BB27BB #BB2771
triadic
#BB27BB #BBBB27 #27BBBB
tetradic
#BB27BB #BB7127 #27BB27 #2771BB
square
#BB27BB #BB7127 #27BB27 #2771BB
split-complementary
#BB27BB #71BB27 #27BB71
monochromatic
#561256 #881C88 #BB27BB #D947D9 #E379E3

Accessibility & contrast

On white

5.10
#BB27BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BB27BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB27BB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB27BB#FFFFFF#000000##FFFFFF
##BB27BB1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#5375B8
Tritanopia (blue-blind)
#C14172
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bb27bb;
/* rgb */ color: rgb(187, 39, 187);
/* oklch */ color: oklch(57.0% 0.237 328.1);
Tailwind
colors: {
  custom: {
    50: '#d474d0',
    500: '#bb27bb',
    950: '#000000',
  },
}
SCSS
$custom: #bb27bb;
$custom-light: #d474d0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb27bb",
  "rgb": {
    "r": 187,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 300,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56988,
    "c": 0.23651,
    "h": 328.1
  },
  "luminance": 0.15604
}

Semantic roles & 50–950 ramp

primary
#BB27BB
secondary
#73CB73
accent
#E83F3F
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BB27BB

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

Preview Lab → · Contrast checker → · Palette generator →

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