#BB21AC#BB21AC

#BB21AC is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.8% C 0.231 H 332.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BB21AC
RGBrgb(187, 33, 172)
HSLhsl(306, 70%, 43%)
HSVhsv(306, 82%, 73%)
CMYKcmyk(0%, 82.4%, 8%, 26.7%)
CIE-LABlab(45.13, 71.11, -38.26)
CIE-LCHlch(45.13, 80.75, 331.72°)
OKLaboklab(55.78% 0.2053 -0.1053)
OKLCHoklch(55.78% 0.231 332.8)
XYZxyz(28.4840, 14.6336, 40.3461)
Luminance0.1463 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB21AC #21BB30
analogous
#7D21BB #BB21AC #BB215F
triadic
#BB21AC #ACBB21 #21ACBB
tetradic
#BB21AC #BB7D21 #21BB30 #215FBB
square
#BB21AC #BB7D21 #21BB30 #215FBB
split-complementary
#BB21AC #5FBB21 #21BB7D
monochromatic
#530F4C #87187C #BB21AC #DD3DCD #E671DA

Accessibility & contrast

On white

5.35
#BB21AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#BB21AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB21AC
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB21AC#FFFFFF#000000##FFFFFF
##BB21AC1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145DAF
Deuteranopia (green-blind)
#5A72A9
Tritanopia (blue-blind)
#C43568
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #bb21ac;
/* rgb */ color: rgb(187, 33, 172);
/* oklch */ color: oklch(55.8% 0.231 332.8);
Tailwind
colors: {
  custom: {
    50: '#d472c5',
    500: '#bb21ac',
    950: '#000000',
  },
}
SCSS
$custom: #bb21ac;
$custom-light: #d472c5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb21ac",
  "rgb": {
    "r": 187,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 305.844,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55778,
    "c": 0.23069,
    "h": 332.8
  },
  "luminance": 0.14631
}

Semantic roles & 50–950 ramp

primary
#BB21AC
secondary
#6BCC75
accent
#ED4C3B
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BB21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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