#BB21AB#BB21AB

#BB21AB is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.7% C 0.230 H 333.2°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#BB21AB
RGBrgb(187, 33, 171)
HSLhsl(306, 70%, 43%)
HSVhsv(306, 82%, 73%)
CMYKcmyk(0%, 82.4%, 8.6%, 26.7%)
CIE-LABlab(45.07, 70.97, -37.75)
CIE-LCHlch(45.07, 80.39, 331.99°)
OKLaboklab(55.72% 0.2053 -0.1038)
OKLCHoklch(55.72% 0.23 333.2)
XYZxyz(28.3883, 14.5953, 39.8422)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB21AB #21BB31
analogous
#7E21BB #BB21AB #BB215E
triadic
#BB21AB #ABBB21 #21ABBB
tetradic
#BB21AB #BB7E21 #21BB31 #215EBB
square
#BB21AB #BB7E21 #21BB31 #215EBB
split-complementary
#BB21AB #5EBB21 #21BB7E
monochromatic
#530F4C #87187B #BB21AB #DD3DCC #E671DA

Accessibility & contrast

On white

5.36
#BB21AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#BB21AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB21AB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB21AB#FFFFFF#000000##FFFFFF
##BB21AB1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165DAE
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#C43567
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #bb21ab;
/* rgb */ color: rgb(187, 33, 171);
/* oklch */ color: oklch(55.7% 0.230 333.2);
Tailwind
colors: {
  custom: {
    50: '#d471c4',
    500: '#bb21ab',
    950: '#000000',
  },
}
SCSS
$custom: #bb21ab;
$custom-light: #d471c4;
$custom-dark: #000000;
JSON
{
  "hex": "#bb21ab",
  "rgb": {
    "r": 187,
    "g": 33,
    "b": 171
  },
  "hsl": {
    "h": 306.234,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55723,
    "c": 0.23001,
    "h": 333.2
  },
  "luminance": 0.14593
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB21AB

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

Preview Lab → · Contrast checker → · Palette generator →

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