#BA2FAB#BA2FAB

#BA2FAB is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.217 H 332.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA2FAB
RGBrgb(186, 47, 171)
HSLhsl(306, 60%, 46%)
HSVhsv(306, 75%, 73%)
CMYKcmyk(0%, 74.7%, 8.1%, 27.1%)
CIE-LABlab(46.20, 67.03, -35.99)
CIE-LCHlch(46.20, 76.08, 331.77°)
OKLaboklab(56.49% 0.1934 -0.0988)
OKLCHoklch(56.49% 0.217 332.9)
XYZxyz(28.6171, 15.4148, 39.9884)
Luminance0.1541 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FAB #2FBA3E
analogous
#832FBA #BA2FAB #BA2F65
triadic
#BA2FAB #ABBA2F #2FABBA
tetradic
#BA2FAB #BA832F #2FBA3E #2F65BA
square
#BA2FAB #BA832F #2FBA3E #2F65BA
split-complementary
#BA2FAB #65BA2F #2FBA83
monochromatic
#581651 #89237E #BA2FAB #D353C6 #E084D6

Accessibility & contrast

On white

5.14
#BA2FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA2FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FAB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FAB#FFFFFF#000000##FFFFFF
##BA2FAB1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#5E74A8
Tritanopia (blue-blind)
#C23E6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2fab;
/* rgb */ color: rgb(186, 47, 171);
/* oklch */ color: oklch(56.5% 0.217 332.9);
Tailwind
colors: {
  custom: {
    50: '#d376c4',
    500: '#ba2fab',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fab;
$custom-light: #d376c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fab",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 306.475,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56494,
    "c": 0.21714,
    "h": 332.9
  },
  "luminance": 0.15412
}

Semantic roles & 50–950 ramp

primary
#BA2FAB
secondary
#7CC984
accent
#E35645
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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