#BB27A7#BB27A7

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

Color values

HEX#BB27A7
RGBrgb(187, 39, 167)
HSLhsl(308, 65%, 44%)
HSVhsv(308, 79%, 73%)
CMYKcmyk(0%, 79.1%, 10.7%, 26.7%)
CIE-LABlab(45.37, 68.93, -34.91)
CIE-LCHlch(45.37, 77.27, 333.14°)
OKLaboklab(55.87% 0.2008 -0.0956)
OKLCHoklch(55.87% 0.222 334.5)
XYZxyz(28.1944, 14.8084, 37.9251)
Luminance0.1481 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB27A7 #27BB3B
analogous
#8527BB #BB27A7 #BB275D
triadic
#BB27A7 #A7BB27 #27A7BB
tetradic
#BB27A7 #BB8527 #27BB3B #275DBB
square
#BB27A7 #BB8527 #27BB3B #275DBB
split-complementary
#BB27A7 #5DBB27 #27BB85
monochromatic
#56124D #881C7A #BB27A7 #D947C5 #E379D5

Accessibility & contrast

On white

5.30
#BB27A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#BB27A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB27A7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB27A7#FFFFFF#000000##FFFFFF
##BB27A71.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245EAA
Deuteranopia (green-blind)
#5E73A4
Tritanopia (blue-blind)
#C43666
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #bb27a7;
/* rgb */ color: rgb(187, 39, 167);
/* oklch */ color: oklch(55.9% 0.222 334.5);
Tailwind
colors: {
  custom: {
    50: '#d473c1',
    500: '#bb27a7',
    950: '#000000',
  },
}
SCSS
$custom: #bb27a7;
$custom-light: #d473c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb27a7",
  "rgb": {
    "r": 187,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 308.108,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55867,
    "c": 0.22245,
    "h": 334.5
  },
  "luminance": 0.14806
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB27A7

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

Preview Lab → · Contrast checker → · Palette generator →

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