#BB21A5#BB21A5

#BB21A5 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.226 H 335.2°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#BB21A5
RGBrgb(187, 33, 165)
HSLhsl(309, 70%, 43%)
HSVhsv(309, 82%, 73%)
CMYKcmyk(0%, 82.4%, 11.8%, 26.7%)
CIE-LABlab(44.76, 70.11, -34.68)
CIE-LCHlch(44.76, 78.22, 333.68°)
OKLaboklab(55.4% 0.2051 -0.0949)
OKLCHoklch(55.4% 0.226 335.2)
XYZxyz(27.8293, 14.3717, 36.8984)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB21A5 #21BB37
analogous
#8421BB #BB21A5 #BB2158
triadic
#BB21A5 #A5BB21 #21A5BB
tetradic
#BB21A5 #BB8421 #21BB37 #2158BB
square
#BB21A5 #BB8421 #21BB37 #2158BB
split-complementary
#BB21A5 #58BB21 #21BB84
monochromatic
#530F49 #871877 #BB21A5 #DD3DC6 #E671D5

Accessibility & contrast

On white

5.42
#BB21A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#BB21A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB21A5
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB21A5#FFFFFF#000000##FFFFFF
##BB21A51.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205CA8
Deuteranopia (green-blind)
#5D72A2
Tritanopia (blue-blind)
#C53164
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #bb21a5;
/* rgb */ color: rgb(187, 33, 165);
/* oklch */ color: oklch(55.4% 0.226 335.2);
Tailwind
colors: {
  custom: {
    50: '#d471c0',
    500: '#bb21a5',
    950: '#000000',
  },
}
SCSS
$custom: #bb21a5;
$custom-light: #d471c0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb21a5",
  "rgb": {
    "r": 187,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 308.571,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55398,
    "c": 0.226,
    "h": 335.2
  },
  "luminance": 0.14369
}

Semantic roles & 50–950 ramp

primary
#BB21A5
secondary
#6BCC79
accent
#ED543B
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB21A5

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

Preview Lab → · Contrast checker → · Palette generator →

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