#BB28B3#BB28B3

#BB28B3 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.6% C 0.230 H 330.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BB28B3
RGBrgb(187, 40, 179)
HSLhsl(303, 65%, 45%)
HSVhsv(303, 79%, 73%)
CMYKcmyk(0%, 78.6%, 4.3%, 26.7%)
CIE-LABlab(46.10, 70.45, -40.86)
CIE-LCHlch(46.10, 81.44, 329.89°)
OKLaboklab(56.59% 0.2003 -0.1128)
OKLCHoklch(56.59% 0.23 330.6)
XYZxyz(29.3889, 15.3394, 44.0520)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28B3 #28BB30
analogous
#7928BB #BB28B3 #BB286A
triadic
#BB28B3 #B3BB28 #28B3BB
tetradic
#BB28B3 #BB7928 #28BB30 #286ABB
square
#BB28B3 #BB7928 #28BB30 #286ABB
split-complementary
#BB28B3 #6ABB28 #28BB79
monochromatic
#561252 #891D83 #BB28B3 #D848D0 #E37BDD

Accessibility & contrast

On white

5.16
#BB28B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BB28B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28B3
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28B3#FFFFFF#000000##FFFFFF
##BB28B31.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1161B7
Deuteranopia (green-blind)
#5874B0
Tritanopia (blue-blind)
#C23D6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb28b3;
/* rgb */ color: rgb(187, 40, 179);
/* oklch */ color: oklch(56.6% 0.230 330.6);
Tailwind
colors: {
  custom: {
    50: '#d474ca',
    500: '#bb28b3',
    950: '#000000',
  },
}
SCSS
$custom: #bb28b3;
$custom-light: #d474ca;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28b3",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 303.265,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5659,
    "c": 0.22993,
    "h": 330.6
  },
  "luminance": 0.15337
}

Semantic roles & 50–950 ramp

primary
#BB28B3
secondary
#74CB79
accent
#E84940
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BB28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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