#BB28A1#BB28A1

#BB28A1 is a mid, highly saturated pink. Relative luminance 0.147; OKLCH L 55.6% C 0.218 H 336.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#BB28A1
RGBrgb(187, 40, 161)
HSLhsl(311, 65%, 45%)
HSVhsv(311, 79%, 73%)
CMYKcmyk(0%, 78.6%, 13.9%, 26.7%)
CIE-LABlab(45.16, 67.81, -31.66)
CIE-LCHlch(45.16, 74.84, 334.97°)
OKLaboklab(55.62% 0.1997 -0.0863)
OKLCHoklch(55.62% 0.218 336.6)
XYZxyz(27.6859, 14.6582, 35.0825)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28A1 #28BB42
analogous
#8C28BB #BB28A1 #BB2858
triadic
#BB28A1 #A1BB28 #28A1BB
tetradic
#BB28A1 #BB8C28 #28BB42 #2858BB
square
#BB28A1 #BB8C28 #28BB42 #2858BB
split-complementary
#BB28A1 #58BB28 #28BB8C
monochromatic
#56124A #891D76 #BB28A1 #D848BF #E37BD0

Accessibility & contrast

On white

5.34
#BB28A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#BB28A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28A1
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28A1#FFFFFF#000000##FFFFFF
##BB28A11.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA4
Deuteranopia (green-blind)
#61739E
Tritanopia (blue-blind)
#C53363
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #bb28a1;
/* rgb */ color: rgb(187, 40, 161);
/* oklch */ color: oklch(55.6% 0.218 336.6);
Tailwind
colors: {
  custom: {
    50: '#d473bd',
    500: '#bb28a1',
    950: '#000000',
  },
}
SCSS
$custom: #bb28a1;
$custom-light: #d473bd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28a1",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 310.612,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5562,
    "c": 0.21754,
    "h": 336.6
  },
  "luminance": 0.14656
}

Semantic roles & 50–950 ramp

primary
#BB28A1
secondary
#74CB83
accent
#E85E40
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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