#BB28AC#BB28AC

#BB28AC is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.225 H 332.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BB28AC
RGBrgb(187, 40, 172)
HSLhsl(306, 65%, 45%)
HSVhsv(306, 79%, 73%)
CMYKcmyk(0%, 78.6%, 8%, 26.7%)
CIE-LABlab(45.72, 69.40, -37.32)
CIE-LCHlch(45.72, 78.80, 331.73°)
OKLaboklab(56.2% 0.2003 -0.1026)
OKLCHoklch(56.2% 0.225 332.9)
XYZxyz(28.6989, 15.0634, 40.4178)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28AC #28BB37
analogous
#8028BB #BB28AC #BB2863
triadic
#BB28AC #ACBB28 #28ACBB
tetradic
#BB28AC #BB8028 #28BB37 #2863BB
square
#BB28AC #BB8028 #28BB37 #2863BB
split-complementary
#BB28AC #63BB28 #28BB80
monochromatic
#56124F #891D7E #BB28AC #D848C9 #E37BD8

Accessibility & contrast

On white

5.23
#BB28AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BB28AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28AC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28AC#FFFFFF#000000##FFFFFF
##BB28AC1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5FAF
Deuteranopia (green-blind)
#5C73A9
Tritanopia (blue-blind)
#C33A69
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #bb28ac;
/* rgb */ color: rgb(187, 40, 172);
/* oklch */ color: oklch(56.2% 0.225 332.9);
Tailwind
colors: {
  custom: {
    50: '#d474c5',
    500: '#bb28ac',
    950: '#000000',
  },
}
SCSS
$custom: #bb28ac;
$custom-light: #d474c5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28ac",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 306.122,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56201,
    "c": 0.22501,
    "h": 332.9
  },
  "luminance": 0.15061
}

Semantic roles & 50–950 ramp

primary
#BB28AC
secondary
#74CB7D
accent
#E85140
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BB28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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