#BB21A8#BB21A8

#BB21A8 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.6% C 0.228 H 334.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#BB21A8
RGBrgb(187, 33, 168)
HSLhsl(307, 70%, 43%)
HSVhsv(307, 82%, 73%)
CMYKcmyk(0%, 82.4%, 10.2%, 26.7%)
CIE-LABlab(44.92, 70.54, -36.22)
CIE-LCHlch(44.92, 79.29, 332.82°)
OKLaboklab(55.56% 0.2052 -0.0994)
OKLCHoklch(55.56% 0.228 334.2)
XYZxyz(28.1056, 14.4822, 38.3533)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB21A8 #21BB34
analogous
#8121BB #BB21A8 #BB215B
triadic
#BB21A8 #A8BB21 #21A8BB
tetradic
#BB21A8 #BB8121 #21BB34 #215BBB
square
#BB21A8 #BB8121 #21BB34 #215BBB
split-complementary
#BB21A8 #5BBB21 #21BB81
monochromatic
#530F4B #871879 #BB21A8 #DD3DC9 #E671D7

Accessibility & contrast

On white

5.39
#BB21A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#BB21A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB21A8
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB21A8#FFFFFF#000000##FFFFFF
##BB21A81.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5CAB
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#C43366
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #bb21a8;
/* rgb */ color: rgb(187, 33, 168);
/* oklch */ color: oklch(55.6% 0.228 334.2);
Tailwind
colors: {
  custom: {
    50: '#d471c2',
    500: '#bb21a8',
    950: '#000000',
  },
}
SCSS
$custom: #bb21a8;
$custom-light: #d471c2;
$custom-dark: #000000;
JSON
{
  "hex": "#bb21a8",
  "rgb": {
    "r": 187,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 307.403,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55559,
    "c": 0.228,
    "h": 334.2
  },
  "luminance": 0.1448
}

Semantic roles & 50–950 ramp

primary
#BB21A8
secondary
#6BCC77
accent
#ED513B
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BB21A8

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

Preview Lab → · Contrast checker → · Palette generator →

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