#BA2FA1#BA2FA1

#BA2FA1 is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 56.0% C 0.210 H 336.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#BA2FA1
RGBrgb(186, 47, 161)
HSLhsl(311, 60%, 46%)
HSVhsv(311, 75%, 73%)
CMYKcmyk(0%, 74.7%, 13.4%, 27.1%)
CIE-LABlab(45.70, 65.55, -30.83)
CIE-LCHlch(45.70, 72.44, 334.81°)
OKLaboklab(55.97% 0.1926 -0.084)
OKLCHoklch(55.97% 0.21 336.4)
XYZxyz(27.6997, 15.0479, 35.1570)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FA1 #2FBA48
analogous
#8D2FBA #BA2FA1 #BA2F5C
triadic
#BA2FA1 #A1BA2F #2FA1BA
tetradic
#BA2FA1 #BA8D2F #2FBA48 #2F5CBA
square
#BA2FA1 #BA8D2F #2FBA48 #2F5CBA
split-complementary
#BA2FA1 #5CBA2F #2FBA8D
monochromatic
#58164C #892377 #BA2FA1 #D353BC #E084CF

Accessibility & contrast

On white

5.24
#BA2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BA2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FA1
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FA1#FFFFFF#000000##FFFFFF
##BA2FA11.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA4
Deuteranopia (green-blind)
#63749E
Tritanopia (blue-blind)
#C43965
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2fa1;
/* rgb */ color: rgb(186, 47, 161);
/* oklch */ color: oklch(56.0% 0.210 336.4);
Tailwind
colors: {
  custom: {
    50: '#d376bd',
    500: '#ba2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fa1;
$custom-light: #d376bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fa1",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 310.791,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55974,
    "c": 0.21016,
    "h": 336.4
  },
  "luminance": 0.15045
}

Semantic roles & 50–950 ramp

primary
#BA2FA1
secondary
#7CC98A
accent
#E36145
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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