#BB28A4#BB28A4

#BB28A4 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.220 H 335.6°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#BB28A4
RGBrgb(187, 40, 164)
HSLhsl(309, 65%, 45%)
HSVhsv(309, 79%, 73%)
CMYKcmyk(0%, 78.6%, 12.3%, 26.7%)
CIE-LABlab(45.31, 68.24, -33.22)
CIE-LCHlch(45.31, 75.89, 334.04°)
OKLaboklab(55.78% 0.1999 -0.0908)
OKLCHoklch(55.78% 0.22 335.6)
XYZxyz(27.9536, 14.7653, 36.4925)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28A4 #28BB3F
analogous
#8928BB #BB28A4 #BB285A
triadic
#BB28A4 #A4BB28 #28A4BB
tetradic
#BB28A4 #BB8928 #28BB3F #285ABB
square
#BB28A4 #BB8928 #28BB3F #285ABB
split-complementary
#BB28A4 #5ABB28 #28BB89
monochromatic
#56124C #891D78 #BB28A4 #D848C1 #E37BD2

Accessibility & contrast

On white

5.31
#BB28A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BB28A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28A4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28A4#FFFFFF#000000##FFFFFF
##BB28A41.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA7
Deuteranopia (green-blind)
#6073A1
Tritanopia (blue-blind)
#C53565
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #bb28a4;
/* rgb */ color: rgb(187, 40, 164);
/* oklch */ color: oklch(55.8% 0.220 335.6);
Tailwind
colors: {
  custom: {
    50: '#d473bf',
    500: '#bb28a4',
    950: '#000000',
  },
}
SCSS
$custom: #bb28a4;
$custom-light: #d473bf;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28a4",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 309.388,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55775,
    "c": 0.21954,
    "h": 335.6
  },
  "luminance": 0.14763
}

Semantic roles & 50–950 ramp

primary
#BB28A4
secondary
#74CB82
accent
#E85A40
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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