#BA2FAC#BA2FAC

#BA2FAC is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.218 H 332.6°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#BA2FAC
RGBrgb(186, 47, 172)
HSLhsl(306, 60%, 46%)
HSVhsv(306, 75%, 73%)
CMYKcmyk(0%, 74.7%, 7.5%, 27.1%)
CIE-LABlab(46.25, 67.18, -36.50)
CIE-LCHlch(46.25, 76.45, 331.48°)
OKLaboklab(56.55% 0.1934 -0.1003)
OKLCHoklch(56.55% 0.218 332.6)
XYZxyz(28.7127, 15.4531, 40.4922)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FAC #2FBA3D
analogous
#822FBA #BA2FAC #BA2F66
triadic
#BA2FAC #ACBA2F #2FACBA
tetradic
#BA2FAC #BA822F #2FBA3D #2F66BA
square
#BA2FAC #BA822F #2FBA3D #2F66BA
split-complementary
#BA2FAC #66BA2F #2FBA82
monochromatic
#581652 #89237F #BA2FAC #D353C7 #E084D7

Accessibility & contrast

On white

5.13
#BA2FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#BA2FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FAC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FAC#FFFFFF#000000##FFFFFF
##BA2FAC1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2761AF
Deuteranopia (green-blind)
#5E74A9
Tritanopia (blue-blind)
#C23E6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2fac;
/* rgb */ color: rgb(186, 47, 172);
/* oklch */ color: oklch(56.5% 0.218 332.6);
Tailwind
colors: {
  custom: {
    50: '#d376c5',
    500: '#ba2fac',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fac;
$custom-light: #d376c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fac",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 306.043,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56547,
    "c": 0.21786,
    "h": 332.6
  },
  "luminance": 0.15451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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