#BB28B4#BB28B4

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

Color values

HEX#BB28B4
RGBrgb(187, 40, 180)
HSLhsl(303, 65%, 45%)
HSVhsv(303, 79%, 73%)
CMYKcmyk(0%, 78.6%, 3.7%, 26.7%)
CIE-LABlab(46.15, 70.60, -41.36)
CIE-LCHlch(46.15, 81.83, 329.64°)
OKLaboklab(56.65% 0.2003 -0.1143)
OKLCHoklch(56.65% 0.231 330.3)
XYZxyz(29.4904, 15.3800, 44.5866)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28B4 #28BB2F
analogous
#7928BB #BB28B4 #BB286B
triadic
#BB28B4 #B4BB28 #28B4BB
tetradic
#BB28B4 #BB7928 #28BB2F #286BBB
square
#BB28B4 #BB7928 #28BB2F #286BBB
split-complementary
#BB28B4 #6BBB28 #28BB79
monochromatic
#561253 #891D83 #BB28B4 #D848D1 #E37BDE

Accessibility & contrast

On white

5.15
#BB28B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BB28B4
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28B4#FFFFFF#000000##FFFFFF
##BB28B41.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E61B8
Deuteranopia (green-blind)
#5874B1
Tritanopia (blue-blind)
#C23E6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb28b4;
/* rgb */ color: rgb(187, 40, 180);
/* oklch */ color: oklch(56.6% 0.231 330.3);
Tailwind
colors: {
  custom: {
    50: '#d474cb',
    500: '#bb28b4',
    950: '#000000',
  },
}
SCSS
$custom: #bb28b4;
$custom-light: #d474cb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28b4",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 302.857,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56647,
    "c": 0.23064,
    "h": 330.3
  },
  "luminance": 0.15378
}

Semantic roles & 50–950 ramp

primary
#BB28B4
secondary
#74CB78
accent
#E84840
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BB28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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