#BB27A8#BB27A8

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

Color values

HEX#BB27A8
RGBrgb(187, 39, 168)
HSLhsl(308, 65%, 44%)
HSVhsv(308, 79%, 73%)
CMYKcmyk(0%, 79.1%, 10.2%, 26.7%)
CIE-LABlab(45.42, 69.08, -35.42)
CIE-LCHlch(45.42, 77.63, 332.85°)
OKLaboklab(55.92% 0.2009 -0.0971)
OKLCHoklch(55.92% 0.223 334.2)
XYZxyz(28.2872, 14.8455, 38.4139)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB27A8 #27BB3A
analogous
#8427BB #BB27A8 #BB275E
triadic
#BB27A8 #A8BB27 #27A8BB
tetradic
#BB27A8 #BB8427 #27BB3A #275EBB
square
#BB27A8 #BB8427 #27BB3A #275EBB
split-complementary
#BB27A8 #5EBB27 #27BB84
monochromatic
#56124D #881C7B #BB27A8 #D947C6 #E379D6

Accessibility & contrast

On white

5.29
#BB27A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#BB27A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB27A8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB27A8#FFFFFF#000000##FFFFFF
##BB27A81.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235EAB
Deuteranopia (green-blind)
#5E73A5
Tritanopia (blue-blind)
#C43767
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #bb27a8;
/* rgb */ color: rgb(187, 39, 168);
/* oklch */ color: oklch(55.9% 0.223 334.2);
Tailwind
colors: {
  custom: {
    50: '#d473c2',
    500: '#bb27a8',
    950: '#000000',
  },
}
SCSS
$custom: #bb27a8;
$custom-light: #d473c2;
$custom-dark: #000000;
JSON
{
  "hex": "#bb27a8",
  "rgb": {
    "r": 187,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 307.703,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5592,
    "c": 0.22313,
    "h": 334.2
  },
  "luminance": 0.14843
}

Semantic roles & 50–950 ramp

primary
#BB27A8
secondary
#73CB7E
accent
#E8553F
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BB27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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