#BB21AF#BB21AF

#BB21AF is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.9% C 0.233 H 331.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BB21AF
RGBrgb(187, 33, 175)
HSLhsl(305, 70%, 43%)
HSVhsv(305, 82%, 73%)
CMYKcmyk(0%, 82.4%, 6.4%, 26.7%)
CIE-LABlab(45.29, 71.55, -39.78)
CIE-LCHlch(45.29, 81.87, 330.93°)
OKLaboklab(55.95% 0.2053 -0.1097)
OKLCHoklch(55.95% 0.233 331.9)
XYZxyz(28.7753, 14.7501, 41.8807)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB21AF #21BB2D
analogous
#7A21BB #BB21AF #BB2162
triadic
#BB21AF #AFBB21 #21AFBB
tetradic
#BB21AF #BB7A21 #21BB2D #2162BB
square
#BB21AF #BB7A21 #21BB2D #2162BB
split-complementary
#BB21AF #62BB21 #21BB7A
monochromatic
#530F4E #87187E #BB21AF #DD3DD0 #E671DD

Accessibility & contrast

On white

5.32
#BB21AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BB21AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB21AF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB21AF#FFFFFF#000000##FFFFFF
##BB21AF1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5EB3
Deuteranopia (green-blind)
#5872AC
Tritanopia (blue-blind)
#C3376A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #bb21af;
/* rgb */ color: rgb(187, 33, 175);
/* oklch */ color: oklch(55.9% 0.233 331.9);
Tailwind
colors: {
  custom: {
    50: '#d472c7',
    500: '#bb21af',
    950: '#000000',
  },
}
SCSS
$custom: #bb21af;
$custom-light: #d472c7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb21af",
  "rgb": {
    "r": 187,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 304.675,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55946,
    "c": 0.23274,
    "h": 331.9
  },
  "luminance": 0.14748
}

Semantic roles & 50–950 ramp

primary
#BB21AF
secondary
#6BCC73
accent
#ED493B
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BB21AF

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

Preview Lab → · Contrast checker → · Palette generator →

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