#BB28B5#BB28B5

#BB28B5 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.7% C 0.231 H 330.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BB28B5
RGBrgb(187, 40, 181)
HSLhsl(302, 65%, 45%)
HSVhsv(302, 79%, 73%)
CMYKcmyk(0%, 78.6%, 3.2%, 26.7%)
CIE-LABlab(46.21, 70.76, -41.86)
CIE-LCHlch(46.21, 82.21, 329.39°)
OKLaboklab(56.7% 0.2003 -0.1158)
OKLCHoklch(56.7% 0.231 330)
XYZxyz(29.5927, 15.4209, 45.1250)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28B5 #28BB2E
analogous
#7828BB #BB28B5 #BB286C
triadic
#BB28B5 #B5BB28 #28B5BB
tetradic
#BB28B5 #BB7828 #28BB2E #286CBB
square
#BB28B5 #BB7828 #28BB2E #286CBB
split-complementary
#BB28B5 #6CBB28 #28BB78
monochromatic
#561253 #891D84 #BB28B5 #D848D2 #E37BDE

Accessibility & contrast

On white

5.14
#BB28B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BB28B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28B5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28B5#FFFFFF#000000##FFFFFF
##BB28B51.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B61B9
Deuteranopia (green-blind)
#5774B2
Tritanopia (blue-blind)
#C23F6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb28b5;
/* rgb */ color: rgb(187, 40, 181);
/* oklch */ color: oklch(56.7% 0.231 330.0);
Tailwind
colors: {
  custom: {
    50: '#d474cc',
    500: '#bb28b5',
    950: '#000000',
  },
}
SCSS
$custom: #bb28b5;
$custom-light: #d474cc;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28b5",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 302.449,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56704,
    "c": 0.23135,
    "h": 330
  },
  "luminance": 0.15419
}

Semantic roles & 50–950 ramp

primary
#BB28B5
secondary
#74CB78
accent
#E84740
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BB28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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