#BB21BD#BB21BD

#BB21BD is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.8% C 0.243 H 327.6°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BB21BD
RGBrgb(187, 33, 189)
HSLhsl(299, 70%, 44%)
HSVhsv(299, 83%, 74%)
CMYKcmyk(1.1%, 82.5%, 0%, 25.9%)
CIE-LABlab(46.08, 73.68, -46.75)
CIE-LCHlch(46.08, 87.26, 327.61°)
OKLaboklab(56.76% 0.2048 -0.1299)
OKLCHoklch(56.76% 0.243 327.6)
XYZxyz(30.2223, 15.3289, 49.5012)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB21BD #23BD21
analogous
#6D21BD #BB21BD #BD2171
triadic
#BB21BD #BDBB21 #21BDBB
tetradic
#BB21BD #BD6D21 #23BD21 #2171BD
square
#BB21BD #BD6D21 #23BD21 #2171BD
split-complementary
#BB21BD #71BD21 #21BD6D
monochromatic
#540F55 #871889 #BB21BD #DB3EDD #E572E6

Accessibility & contrast

On white

5.17
#BB21BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BB21BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB21BD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB21BD#FFFFFF#000000##FFFFFF
##BB21BD1.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#5074B9
Tritanopia (blue-blind)
#C13F72
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb21bd;
/* rgb */ color: rgb(187, 33, 189);
/* oklch */ color: oklch(56.8% 0.243 327.6);
Tailwind
colors: {
  custom: {
    50: '#d472d1',
    500: '#bb21bd',
    950: '#000000',
  },
}
SCSS
$custom: #bb21bd;
$custom-light: #d472d1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb21bd",
  "rgb": {
    "r": 187,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 299.231,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.56762,
    "c": 0.24252,
    "h": 327.6
  },
  "luminance": 0.15327
}

Semantic roles & 50–950 ramp

primary
#BB21BD
secondary
#6ECD6D
accent
#ED3B3D
background
#FDF7FC
surface
#FBEDF9
border
#D4C8D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BB21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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