#BB21A7#BB21A7

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

Color values

HEX#BB21A7
RGBrgb(187, 33, 167)
HSLhsl(308, 70%, 43%)
HSVhsv(308, 82%, 73%)
CMYKcmyk(0%, 82.4%, 10.7%, 26.7%)
CIE-LABlab(44.86, 70.40, -35.70)
CIE-LCHlch(44.86, 78.93, 333.11°)
OKLaboklab(55.51% 0.2052 -0.0979)
OKLCHoklch(55.51% 0.227 334.5)
XYZxyz(28.0128, 14.4451, 37.8646)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB21A7 #21BB35
analogous
#8221BB #BB21A7 #BB215A
triadic
#BB21A7 #A7BB21 #21A7BB
tetradic
#BB21A7 #BB8221 #21BB35 #215ABB
square
#BB21A7 #BB8221 #21BB35 #215ABB
split-complementary
#BB21A7 #5ABB21 #21BB82
monochromatic
#530F4A #871879 #BB21A7 #DD3DC8 #E671D7

Accessibility & contrast

On white

5.40
#BB21A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#BB21A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB21A7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB21A7#FFFFFF#000000##FFFFFF
##BB21A71.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CAA
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#C43265
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #bb21a7;
/* rgb */ color: rgb(187, 33, 167);
/* oklch */ color: oklch(55.5% 0.227 334.5);
Tailwind
colors: {
  custom: {
    50: '#d471c1',
    500: '#bb21a7',
    950: '#000000',
  },
}
SCSS
$custom: #bb21a7;
$custom-light: #d471c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb21a7",
  "rgb": {
    "r": 187,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 307.792,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55505,
    "c": 0.22733,
    "h": 334.5
  },
  "luminance": 0.14443
}

Semantic roles & 50–950 ramp

primary
#BB21A7
secondary
#6BCC78
accent
#ED523B
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB21A7

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

Preview Lab → · Contrast checker → · Palette generator →

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