#BA2FA3#BA2FA3

#BA2FA3 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.212 H 335.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA2FA3
RGBrgb(186, 47, 163)
HSLhsl(310, 60%, 46%)
HSVhsv(310, 75%, 73%)
CMYKcmyk(0%, 74.7%, 12.4%, 27.1%)
CIE-LABlab(45.80, 65.84, -31.87)
CIE-LCHlch(45.80, 73.15, 334.17°)
OKLaboklab(56.08% 0.1928 -0.087)
OKLCHoklch(56.08% 0.212 335.7)
XYZxyz(27.8775, 15.1190, 36.0933)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FA3 #2FBA46
analogous
#8B2FBA #BA2FA3 #BA2F5D
triadic
#BA2FA3 #A3BA2F #2FA3BA
tetradic
#BA2FA3 #BA8B2F #2FBA46 #2F5DBA
square
#BA2FA3 #BA8B2F #2FBA46 #2F5DBA
split-complementary
#BA2FA3 #5DBA2F #2FBA8B
monochromatic
#58164D #892378 #BA2FA3 #D353BE #E084D1

Accessibility & contrast

On white

5.22
#BA2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA2FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FA3
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FA3#FFFFFF#000000##FFFFFF
##BA2FA31.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305FA6
Deuteranopia (green-blind)
#6274A0
Tritanopia (blue-blind)
#C33A66
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2fa3;
/* rgb */ color: rgb(186, 47, 163);
/* oklch */ color: oklch(56.1% 0.212 335.7);
Tailwind
colors: {
  custom: {
    50: '#d376be',
    500: '#ba2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fa3;
$custom-light: #d376be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fa3",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 309.928,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56076,
    "c": 0.21153,
    "h": 335.7
  },
  "luminance": 0.15116
}

Semantic roles & 50–950 ramp

primary
#BA2FA3
secondary
#7CC989
accent
#E35F45
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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