#BB28B0#BB28B0

#BB28B0 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.4% C 0.228 H 331.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BB28B0
RGBrgb(187, 40, 176)
HSLhsl(304, 65%, 45%)
HSVhsv(304, 79%, 73%)
CMYKcmyk(0%, 78.6%, 5.9%, 26.7%)
CIE-LABlab(45.93, 70.00, -39.35)
CIE-LCHlch(45.93, 80.30, 330.66°)
OKLaboklab(56.42% 0.2003 -0.1085)
OKLCHoklch(56.42% 0.228 331.6)
XYZxyz(29.0888, 15.2194, 42.4715)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28B0 #28BB33
analogous
#7D28BB #BB28B0 #BB2866
triadic
#BB28B0 #B0BB28 #28B0BB
tetradic
#BB28B0 #BB7D28 #28BB33 #2866BB
square
#BB28B0 #BB7D28 #28BB33 #2866BB
split-complementary
#BB28B0 #66BB28 #28BB7D
monochromatic
#561251 #891D81 #BB28B0 #D848CD #E37BDB

Accessibility & contrast

On white

5.19
#BB28B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BB28B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28B0
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28B0#FFFFFF#000000##FFFFFF
##BB28B01.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1860B4
Deuteranopia (green-blind)
#5A74AD
Tritanopia (blue-blind)
#C33C6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb28b0;
/* rgb */ color: rgb(187, 40, 176);
/* oklch */ color: oklch(56.4% 0.228 331.6);
Tailwind
colors: {
  custom: {
    50: '#d474c8',
    500: '#bb28b0',
    950: '#000000',
  },
}
SCSS
$custom: #bb28b0;
$custom-light: #d474c8;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28b0",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 304.49,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56422,
    "c": 0.2278,
    "h": 331.6
  },
  "luminance": 0.15217
}

Semantic roles & 50–950 ramp

primary
#BB28B0
secondary
#74CB7B
accent
#E84D40
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BB28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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