#BB21A6#BB21A6

#BB21A6 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.5% C 0.227 H 334.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#BB21A6
RGBrgb(187, 33, 166)
HSLhsl(308, 70%, 43%)
HSVhsv(308, 82%, 73%)
CMYKcmyk(0%, 82.4%, 11.2%, 26.7%)
CIE-LABlab(44.81, 70.25, -35.19)
CIE-LCHlch(44.81, 78.57, 333.39°)
OKLaboklab(55.45% 0.2051 -0.0964)
OKLCHoklch(55.45% 0.227 334.8)
XYZxyz(27.9207, 14.4083, 37.3796)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB21A6 #21BB36
analogous
#8321BB #BB21A6 #BB2159
triadic
#BB21A6 #A6BB21 #21A6BB
tetradic
#BB21A6 #BB8321 #21BB36 #2159BB
square
#BB21A6 #BB8321 #21BB36 #2159BB
split-complementary
#BB21A6 #59BB21 #21BB83
monochromatic
#530F4A #871878 #BB21A6 #DD3DC7 #E671D6

Accessibility & contrast

On white

5.41
#BB21A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#BB21A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB21A6
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB21A6#FFFFFF#000000##FFFFFF
##BB21A61.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5CA9
Deuteranopia (green-blind)
#5D72A3
Tritanopia (blue-blind)
#C43264
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #bb21a6;
/* rgb */ color: rgb(187, 33, 166);
/* oklch */ color: oklch(55.5% 0.227 334.8);
Tailwind
colors: {
  custom: {
    50: '#d471c1',
    500: '#bb21a6',
    950: '#000000',
  },
}
SCSS
$custom: #bb21a6;
$custom-light: #d471c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb21a6",
  "rgb": {
    "r": 187,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 308.182,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55452,
    "c": 0.22666,
    "h": 334.8
  },
  "luminance": 0.14406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB21A6

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

Preview Lab → · Contrast checker → · Palette generator →

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