#BD21B3#BD21B3

#BD21B3 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.5% C 0.236 H 331.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BD21B3
RGBrgb(189, 33, 179)
HSLhsl(304, 70%, 44%)
HSVhsv(304, 83%, 74%)
CMYKcmyk(0%, 82.5%, 5.3%, 25.9%)
CIE-LABlab(45.86, 72.54, -41.22)
CIE-LCHlch(45.86, 83.43, 330.40°)
OKLaboklab(56.49% 0.2072 -0.1138)
OKLCHoklch(56.49% 0.236 331.2)
XYZxyz(29.6668, 15.1637, 44.0035)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD21B3 #21BD2B
analogous
#7921BD #BD21B3 #BD2165
triadic
#BD21B3 #B3BD21 #21B3BD
tetradic
#BD21B3 #BD7921 #21BD2B #2165BD
square
#BD21B3 #BD7921 #21BD2B #2165BD
split-complementary
#BD21B3 #65BD21 #21BD79
monochromatic
#550F50 #891882 #BD21B3 #DD3ED3 #E672DF

Accessibility & contrast

On white

5.21
#BD21B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BD21B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD21B3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD21B3#FFFFFF#000000##FFFFFF
##BD21B31.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045FB7
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#C5396C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bd21b3;
/* rgb */ color: rgb(189, 33, 179);
/* oklch */ color: oklch(56.5% 0.236 331.2);
Tailwind
colors: {
  custom: {
    50: '#d572ca',
    500: '#bd21b3',
    950: '#000000',
  },
}
SCSS
$custom: #bd21b3;
$custom-light: #d572ca;
$custom-dark: #000000;
JSON
{
  "hex": "#bd21b3",
  "rgb": {
    "r": 189,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 303.846,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.56485,
    "c": 0.23638,
    "h": 331.2
  },
  "luminance": 0.15161
}

Semantic roles & 50–950 ramp

primary
#BD21B3
secondary
#6DCD73
accent
#ED463B
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BD21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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