#BA219F#BA219F

#BA219F is a mid, highly saturated pink. Relative luminance 0.140; OKLCH L 54.9% C 0.222 H 336.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#BA219F
RGBrgb(186, 33, 159)
HSLhsl(311, 70%, 43%)
HSVhsv(311, 82%, 73%)
CMYKcmyk(0%, 82.3%, 14.5%, 27.1%)
CIE-LABlab(44.28, 69.07, -31.86)
CIE-LCHlch(44.28, 76.06, 335.24°)
OKLaboklab(54.92% 0.2038 -0.0869)
OKLCHoklch(54.92% 0.222 336.9)
XYZxyz(27.0521, 14.0327, 34.0780)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA219F #21BA3C
analogous
#8821BA #BA219F #BA2153
triadic
#BA219F #9FBA21 #219FBA
tetradic
#BA219F #BA8821 #21BA3C #2153BA
square
#BA219F #BA8821 #21BA3C #2153BA
split-complementary
#BA219F #53BA21 #21BA88
monochromatic
#520F46 #861873 #BA219F #DC3CC0 #E670D1

Accessibility & contrast

On white

5.52
#BA219F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#BA219F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA219F
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA219F#FFFFFF#000000##FFFFFF
##BA219F1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265AA2
Deuteranopia (green-blind)
#5F719C
Tritanopia (blue-blind)
#C42E60
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba219f;
/* rgb */ color: rgb(186, 33, 159);
/* oklch */ color: oklch(54.9% 0.222 336.9);
Tailwind
colors: {
  custom: {
    50: '#d371bc',
    500: '#ba219f',
    950: '#000000',
  },
}
SCSS
$custom: #ba219f;
$custom-light: #d371bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba219f",
  "rgb": {
    "r": 186,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 310.588,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54923,
    "c": 0.22158,
    "h": 336.9
  },
  "luminance": 0.1403
}

Semantic roles & 50–950 ramp

primary
#BA219F
secondary
#6BCC7C
accent
#ED5A3B
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA219F

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

Preview Lab → · Contrast checker → · Palette generator →

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