#BB28B7#BB28B7

#BB28B7 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.8% C 0.233 H 329.4°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BB28B7
RGBrgb(187, 40, 183)
HSLhsl(302, 65%, 45%)
HSVhsv(302, 79%, 73%)
CMYKcmyk(0%, 78.6%, 2.1%, 26.7%)
CIE-LABlab(46.32, 71.07, -42.86)
CIE-LCHlch(46.32, 82.99, 328.91°)
OKLaboklab(56.82% 0.2003 -0.1186)
OKLCHoklch(56.82% 0.233 329.4)
XYZxyz(29.7993, 15.5036, 46.2136)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28B7 #28BB2C
analogous
#7628BB #BB28B7 #BB286D
triadic
#BB28B7 #B7BB28 #28B7BB
tetradic
#BB28B7 #BB7628 #28BB2C #286DBB
square
#BB28B7 #BB7628 #28BB2C #286DBB
split-complementary
#BB28B7 #6DBB28 #28BB76
monochromatic
#561254 #891D86 #BB28B7 #D848D4 #E37BE0

Accessibility & contrast

On white

5.12
#BB28B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BB28B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28B7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28B7#FFFFFF#000000##FFFFFF
##BB28B71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0361BB
Deuteranopia (green-blind)
#5674B4
Tritanopia (blue-blind)
#C24070
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bb28b7;
/* rgb */ color: rgb(187, 40, 183);
/* oklch */ color: oklch(56.8% 0.233 329.4);
Tailwind
colors: {
  custom: {
    50: '#d474cd',
    500: '#bb28b7',
    950: '#000000',
  },
}
SCSS
$custom: #bb28b7;
$custom-light: #d474cd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28b7",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 301.633,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56818,
    "c": 0.23279,
    "h": 329.4
  },
  "luminance": 0.15501
}

Semantic roles & 50–950 ramp

primary
#BB28B7
secondary
#74CB76
accent
#E84540
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BB28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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