#BA21BD#BA21BD

#BA21BD is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.6% C 0.242 H 327.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA21BD
RGBrgb(186, 33, 189)
HSLhsl(299, 70%, 44%)
HSVhsv(299, 83%, 74%)
CMYKcmyk(1.6%, 82.5%, 0%, 25.9%)
CIE-LABlab(45.91, 73.49, -47.03)
CIE-LCHlch(45.91, 87.25, 327.38°)
OKLaboklab(56.61% 0.2037 -0.1308)
OKLCHoklch(56.61% 0.242 327.3)
XYZxyz(29.9784, 15.2032, 49.4898)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA21BD #24BD21
analogous
#6C21BD #BA21BD #BD2172
triadic
#BA21BD #BDBA21 #21BDBA
tetradic
#BA21BD #BD6C21 #24BD21 #2172BD
square
#BA21BD #BD6C21 #24BD21 #2172BD
split-complementary
#BA21BD #72BD21 #21BD6C
monochromatic
#530F55 #871889 #BA21BD #DA3EDD #E472E6

Accessibility & contrast

On white

5.20
#BA21BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BA21BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA21BD
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA21BD#FFFFFF#000000##FFFFFF
##BA21BD1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#4F73B9
Tritanopia (blue-blind)
#C04072
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba21bd;
/* rgb */ color: rgb(186, 33, 189);
/* oklch */ color: oklch(56.6% 0.242 327.3);
Tailwind
colors: {
  custom: {
    50: '#d372d1',
    500: '#ba21bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba21bd;
$custom-light: #d372d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba21bd",
  "rgb": {
    "r": 186,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 298.846,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.56609,
    "c": 0.24211,
    "h": 327.3
  },
  "luminance": 0.15201
}

Semantic roles & 50–950 ramp

primary
#BA21BD
secondary
#6FCD6D
accent
#ED3B3E
background
#FDF7FC
surface
#FBEDF9
border
#D4C8D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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