#BD21B1#BD21B1

#BD21B1 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.4% C 0.235 H 331.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BD21B1
RGBrgb(189, 33, 177)
HSLhsl(305, 70%, 44%)
HSVhsv(305, 83%, 74%)
CMYKcmyk(0%, 82.5%, 6.3%, 25.9%)
CIE-LABlab(45.75, 72.24, -40.21)
CIE-LCHlch(45.75, 82.68, 330.90°)
OKLaboklab(56.37% 0.2072 -0.1109)
OKLCHoklch(56.37% 0.235 331.8)
XYZxyz(29.4660, 15.0834, 42.9459)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD21B1 #21BD2D
analogous
#7B21BD #BD21B1 #BD2163
triadic
#BD21B1 #B1BD21 #21B1BD
tetradic
#BD21B1 #BD7B21 #21BD2D #2163BD
square
#BD21B1 #BD7B21 #21BD2D #2163BD
split-complementary
#BD21B1 #63BD21 #21BD7B
monochromatic
#550F4F #891880 #BD21B1 #DD3ED1 #E672DD

Accessibility & contrast

On white

5.23
#BD21B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BD21B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD21B1
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD21B1#FFFFFF#000000##FFFFFF
##BD21B11.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5FB5
Deuteranopia (green-blind)
#5974AE
Tritanopia (blue-blind)
#C5386B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #bd21b1;
/* rgb */ color: rgb(189, 33, 177);
/* oklch */ color: oklch(56.4% 0.235 331.8);
Tailwind
colors: {
  custom: {
    50: '#d572c9',
    500: '#bd21b1',
    950: '#000000',
  },
}
SCSS
$custom: #bd21b1;
$custom-light: #d572c9;
$custom-dark: #000000;
JSON
{
  "hex": "#bd21b1",
  "rgb": {
    "r": 189,
    "g": 33,
    "b": 177
  },
  "hsl": {
    "h": 304.615,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.56372,
    "c": 0.23501,
    "h": 331.8
  },
  "luminance": 0.15081
}

Semantic roles & 50–950 ramp

primary
#BD21B1
secondary
#6DCD74
accent
#ED483B
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BD21B1

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

Preview Lab → · Contrast checker → · Palette generator →

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