#BD21B7#BD21B7

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

Color values

HEX#BD21B7
RGBrgb(189, 33, 183)
HSLhsl(302, 70%, 44%)
HSVhsv(302, 83%, 74%)
CMYKcmyk(0%, 82.5%, 3.2%, 25.9%)
CIE-LABlab(46.08, 73.14, -43.22)
CIE-LCHlch(46.08, 84.95, 329.42°)
OKLaboklab(56.72% 0.2071 -0.1196)
OKLCHoklch(56.72% 0.239 330)
XYZxyz(30.0772, 15.3279, 46.1650)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD21B7 #21BD27
analogous
#7521BD #BD21B7 #BD2169
triadic
#BD21B7 #B7BD21 #21B7BD
tetradic
#BD21B7 #BD7521 #21BD27 #2169BD
square
#BD21B7 #BD7521 #21BD27 #2169BD
split-complementary
#BD21B7 #69BD21 #21BD75
monochromatic
#550F52 #891885 #BD21B7 #DD3ED7 #E672E2

Accessibility & contrast

On white

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

On black

4.06
#BD21B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BD21B7#FFFFFF#000000##FFFFFF
##BD21B71.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#5674B3
Tritanopia (blue-blind)
#C43B6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bd21b7;
/* rgb */ color: rgb(189, 33, 183);
/* oklch */ color: oklch(56.7% 0.239 330.0);
Tailwind
colors: {
  custom: {
    50: '#d572cd',
    500: '#bd21b7',
    950: '#000000',
  },
}
SCSS
$custom: #bd21b7;
$custom-light: #d572cd;
$custom-dark: #000000;
JSON
{
  "hex": "#bd21b7",
  "rgb": {
    "r": 189,
    "g": 33,
    "b": 183
  },
  "hsl": {
    "h": 302.308,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.56715,
    "c": 0.23915,
    "h": 330
  },
  "luminance": 0.15325
}

Semantic roles & 50–950 ramp

primary
#BD21B7
secondary
#6DCD70
accent
#ED423B
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BD21B7

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

Preview Lab → · Contrast checker → · Palette generator →

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