#BB28AF#BB28AF

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

Color values

HEX#BB28AF
RGBrgb(187, 40, 175)
HSLhsl(305, 65%, 45%)
HSVhsv(305, 79%, 73%)
CMYKcmyk(0%, 78.6%, 6.4%, 26.7%)
CIE-LABlab(45.88, 69.85, -38.84)
CIE-LCHlch(45.88, 79.92, 330.92°)
OKLaboklab(56.37% 0.2003 -0.107)
OKLCHoklch(56.37% 0.227 331.9)
XYZxyz(28.9902, 15.1800, 41.9523)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28AF #28BB34
analogous
#7E28BB #BB28AF #BB2866
triadic
#BB28AF #AFBB28 #28AFBB
tetradic
#BB28AF #BB7E28 #28BB34 #2866BB
square
#BB28AF #BB7E28 #28BB34 #2866BB
split-complementary
#BB28AF #66BB28 #28BB7E
monochromatic
#561251 #891D80 #BB28AF #D848CC #E37BDA

Accessibility & contrast

On white

5.20
#BB28AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BB28AF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28AF#FFFFFF#000000##FFFFFF
##BB28AF1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A60B3
Deuteranopia (green-blind)
#5A74AC
Tritanopia (blue-blind)
#C33B6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb28af;
/* rgb */ color: rgb(187, 40, 175);
/* oklch */ color: oklch(56.4% 0.227 331.9);
Tailwind
colors: {
  custom: {
    50: '#d474c7',
    500: '#bb28af',
    950: '#000000',
  },
}
SCSS
$custom: #bb28af;
$custom-light: #d474c7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28af",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 304.898,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56366,
    "c": 0.2271,
    "h": 331.9
  },
  "luminance": 0.15178
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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