#BB21A4#BB21A4

#BB21A4 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.3% C 0.225 H 335.5°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#BB21A4
RGBrgb(187, 33, 164)
HSLhsl(309, 70%, 43%)
HSVhsv(309, 82%, 73%)
CMYKcmyk(0%, 82.4%, 12.3%, 26.7%)
CIE-LABlab(44.71, 69.97, -34.16)
CIE-LCHlch(44.71, 77.87, 333.98°)
OKLaboklab(55.35% 0.2051 -0.0934)
OKLCHoklch(55.35% 0.225 335.5)
XYZxyz(27.7387, 14.3355, 36.4209)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB21A4 #21BB38
analogous
#8521BB #BB21A4 #BB2157
triadic
#BB21A4 #A4BB21 #21A4BB
tetradic
#BB21A4 #BB8521 #21BB38 #2157BB
square
#BB21A4 #BB8521 #21BB38 #2157BB
split-complementary
#BB21A4 #57BB21 #21BB85
monochromatic
#530F49 #871876 #BB21A4 #DD3DC5 #E671D4

Accessibility & contrast

On white

5.43
#BB21A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BB21A4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB21A4#FFFFFF#000000##FFFFFF
##BB21A41.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225BA7
Deuteranopia (green-blind)
#5E72A1
Tritanopia (blue-blind)
#C53063
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #bb21a4;
/* rgb */ color: rgb(187, 33, 164);
/* oklch */ color: oklch(55.3% 0.225 335.5);
Tailwind
colors: {
  custom: {
    50: '#d471bf',
    500: '#bb21a4',
    950: '#000000',
  },
}
SCSS
$custom: #bb21a4;
$custom-light: #d471bf;
$custom-dark: #000000;
JSON
{
  "hex": "#bb21a4",
  "rgb": {
    "r": 187,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 308.961,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55345,
    "c": 0.22534,
    "h": 335.5
  },
  "luminance": 0.14333
}

Semantic roles & 50–950 ramp

primary
#BB21A4
secondary
#6BCC7A
accent
#ED563B
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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