#BB28B6#BB28B6

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

Color values

HEX#BB28B6
RGBrgb(187, 40, 182)
HSLhsl(302, 65%, 45%)
HSVhsv(302, 79%, 73%)
CMYKcmyk(0%, 78.6%, 2.7%, 26.7%)
CIE-LABlab(46.26, 70.91, -42.36)
CIE-LCHlch(46.26, 82.60, 329.15°)
OKLaboklab(56.76% 0.2003 -0.1172)
OKLCHoklch(56.76% 0.232 329.7)
XYZxyz(29.6956, 15.4621, 45.6674)
Luminance0.1546 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28B6 #28BB2D
analogous
#7728BB #BB28B6 #BB286D
triadic
#BB28B6 #B6BB28 #28B6BB
tetradic
#BB28B6 #BB7728 #28BB2D #286DBB
square
#BB28B6 #BB7728 #28BB2D #286DBB
split-complementary
#BB28B6 #6DBB28 #28BB77
monochromatic
#561254 #891D85 #BB28B6 #D848D3 #E37BDF

Accessibility & contrast

On white

5.13
#BB28B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#BB28B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28B6
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28B6#FFFFFF#000000##FFFFFF
##BB28B61.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0761BA
Deuteranopia (green-blind)
#5674B3
Tritanopia (blue-blind)
#C23F6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bb28b6;
/* rgb */ color: rgb(187, 40, 182);
/* oklch */ color: oklch(56.8% 0.232 329.7);
Tailwind
colors: {
  custom: {
    50: '#d474cc',
    500: '#bb28b6',
    950: '#000000',
  },
}
SCSS
$custom: #bb28b6;
$custom-light: #d474cc;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28b6",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 302.041,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56761,
    "c": 0.23207,
    "h": 329.7
  },
  "luminance": 0.1546
}

Semantic roles & 50–950 ramp

primary
#BB28B6
secondary
#74CB77
accent
#E84640
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BB28B6

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

Preview Lab → · Contrast checker → · Palette generator →

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