#BA2FAA#BA2FAA

#BA2FAA is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.4% C 0.216 H 333.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA2FAA
RGBrgb(186, 47, 170)
HSLhsl(307, 60%, 46%)
HSVhsv(307, 75%, 73%)
CMYKcmyk(0%, 74.7%, 8.6%, 27.1%)
CIE-LABlab(46.15, 66.88, -35.48)
CIE-LCHlch(46.15, 75.70, 332.05°)
OKLaboklab(56.44% 0.1933 -0.0974)
OKLCHoklch(56.44% 0.216 333.3)
XYZxyz(28.5221, 15.3769, 39.4883)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FAA #2FBA3F
analogous
#842FBA #BA2FAA #BA2F65
triadic
#BA2FAA #AABA2F #2FAABA
tetradic
#BA2FAA #BA842F #2FBA3F #2F65BA
square
#BA2FAA #BA842F #2FBA3F #2F65BA
split-complementary
#BA2FAA #65BA2F #2FBA84
monochromatic
#581651 #89237D #BA2FAA #D353C5 #E084D5

Accessibility & contrast

On white

5.15
#BA2FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BA2FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FAA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FAA#FFFFFF#000000##FFFFFF
##BA2FAA1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AD
Deuteranopia (green-blind)
#5F74A7
Tritanopia (blue-blind)
#C23D6A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2faa;
/* rgb */ color: rgb(186, 47, 170);
/* oklch */ color: oklch(56.4% 0.216 333.3);
Tailwind
colors: {
  custom: {
    50: '#d376c4',
    500: '#ba2faa',
    950: '#000000',
  },
}
SCSS
$custom: #ba2faa;
$custom-light: #d376c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2faa",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 306.906,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5644,
    "c": 0.21643,
    "h": 333.3
  },
  "luminance": 0.15374
}

Semantic roles & 50–950 ramp

primary
#BA2FAA
secondary
#7CC985
accent
#E35745
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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