#BB28E2#BB28E2

#BB28E2 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 59.5% C 0.265 H 317.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BB28E2
RGBrgb(187, 40, 226)
HSLhsl(287, 76%, 52%)
HSVhsv(287, 82%, 89%)
CMYKcmyk(17.3%, 82.3%, 0%, 11.4%)
CIE-LABlab(48.98, 78.24, -63.41)
CIE-LCHlch(48.98, 100.70, 320.98°)
OKLaboklab(59.54% 0.1957 -0.1787)
OKLCHoklch(59.54% 0.265 317.6)
XYZxyz(34.9778, 17.5750, 73.4866)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28E2 #4FE228
analogous
#5E28E2 #BB28E2 #E228AC
triadic
#BB28E2 #E2BB28 #28E2BB
tetradic
#BB28E2 #E25E28 #4FE228 #28ACE2
square
#BB28E2 #E25E28 #4FE228 #28ACE2
split-complementary
#BB28E2 #ACE228 #28E25E
monochromatic
#68117F #9418B4 #BB28E2 #CC5EE9 #DD94F1

Accessibility & contrast

On white

4.65
#BB28E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#BB28E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28E2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28E2#FFFFFF#000000##FFFFFF
##BB28E21.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#2E79DE
Tritanopia (blue-blind)
#B95688
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bb28e2;
/* rgb */ color: rgb(187, 40, 226);
/* oklch */ color: oklch(59.5% 0.265 317.6);
Tailwind
colors: {
  custom: {
    50: '#d576ec',
    500: '#bb28e2',
    950: '#000000',
  },
}
SCSS
$custom: #bb28e2;
$custom-light: #d576ec;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28e2",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 287.419,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59543,
    "c": 0.26503,
    "h": 317.6
  },
  "luminance": 0.17573
}

Semantic roles & 50–950 ramp

primary
#BB28E2
secondary
#9BDC8A
accent
#F3355D
background
#FDF7FE
surface
#FBEEFD
border
#D4C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #BB28E2

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

Preview Lab → · Contrast checker → · Palette generator →

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