#BA2BA1#BA2BA1

#BA2BA1 is a mid, highly saturated pink. Relative luminance 0.147; OKLCH L 55.7% C 0.214 H 336.4°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA2BA1
RGBrgb(186, 43, 161)
HSLhsl(310, 62%, 45%)
HSVhsv(310, 77%, 73%)
CMYKcmyk(0%, 76.9%, 13.4%, 27.1%)
CIE-LABlab(45.28, 66.75, -31.49)
CIE-LCHlch(45.28, 73.81, 334.75°)
OKLaboklab(55.67% 0.1962 -0.0859)
OKLCHoklch(55.67% 0.214 336.4)
XYZxyz(27.5471, 14.7426, 35.1061)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BA1 #2BBA44
analogous
#8C2BBA #BA2BA1 #BA2B59
triadic
#BA2BA1 #A1BA2B #2BA1BA
tetradic
#BA2BA1 #BA8C2B #2BBA44 #2B59BA
square
#BA2BA1 #BA8C2B #2BBA44 #2B59BA
split-complementary
#BA2BA1 #59BA2B #2BBA8C
monochromatic
#57144B #882076 #BA2BA1 #D64CBE #E17ED0

Accessibility & contrast

On white

5.32
#BA2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BA2BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BA1
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BA1#FFFFFF#000000##FFFFFF
##BA2BA11.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5DA4
Deuteranopia (green-blind)
#61739E
Tritanopia (blue-blind)
#C43664
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2ba1;
/* rgb */ color: rgb(186, 43, 161);
/* oklch */ color: oklch(55.7% 0.214 336.4);
Tailwind
colors: {
  custom: {
    50: '#d374bd',
    500: '#ba2ba1',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ba1;
$custom-light: #d374bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ba1",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 310.49,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55672,
    "c": 0.21419,
    "h": 336.4
  },
  "luminance": 0.1474
}

Semantic roles & 50–950 ramp

primary
#BA2BA1
secondary
#77CA86
accent
#E65F42
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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