#BB27A6#BB27A6

#BB27A6 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.222 H 334.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#BB27A6
RGBrgb(187, 39, 166)
HSLhsl(309, 65%, 44%)
HSVhsv(309, 79%, 73%)
CMYKcmyk(0%, 79.1%, 11.2%, 26.7%)
CIE-LABlab(45.32, 68.79, -34.39)
CIE-LCHlch(45.32, 76.91, 333.44°)
OKLaboklab(55.81% 0.2008 -0.0942)
OKLCHoklch(55.81% 0.222 334.9)
XYZxyz(28.1023, 14.7716, 37.4402)
Luminance0.1477 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB27A6 #27BB3C
analogous
#8627BB #BB27A6 #BB275C
triadic
#BB27A6 #A6BB27 #27A6BB
tetradic
#BB27A6 #BB8627 #27BB3C #275CBB
square
#BB27A6 #BB8627 #27BB3C #275CBB
split-complementary
#BB27A6 #5CBB27 #27BB86
monochromatic
#56124C #881C79 #BB27A6 #D947C4 #E379D4

Accessibility & contrast

On white

5.31
#BB27A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BB27A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB27A6
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB27A6#FFFFFF#000000##FFFFFF
##BB27A61.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255DA9
Deuteranopia (green-blind)
#5E73A3
Tritanopia (blue-blind)
#C43566
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #bb27a6;
/* rgb */ color: rgb(187, 39, 166);
/* oklch */ color: oklch(55.8% 0.222 334.9);
Tailwind
colors: {
  custom: {
    50: '#d473c1',
    500: '#bb27a6',
    950: '#000000',
  },
}
SCSS
$custom: #bb27a6;
$custom-light: #d473c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb27a6",
  "rgb": {
    "r": 187,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 308.514,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55814,
    "c": 0.22177,
    "h": 334.9
  },
  "luminance": 0.14769
}

Semantic roles & 50–950 ramp

primary
#BB27A6
secondary
#73CB7F
accent
#E8573F
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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