#BA2FA6#BA2FA6

#BA2FA6 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.214 H 334.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BA2FA6
RGBrgb(186, 47, 166)
HSLhsl(309, 60%, 46%)
HSVhsv(309, 75%, 73%)
CMYKcmyk(0%, 74.7%, 10.8%, 27.1%)
CIE-LABlab(45.94, 66.28, -33.42)
CIE-LCHlch(45.94, 74.23, 333.24°)
OKLaboklab(56.23% 0.1931 -0.0914)
OKLCHoklch(56.23% 0.214 334.7)
XYZxyz(28.1495, 15.2278, 37.5257)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FA6 #2FBA43
analogous
#882FBA #BA2FA6 #BA2F60
triadic
#BA2FA6 #A6BA2F #2FA6BA
tetradic
#BA2FA6 #BA882F #2FBA43 #2F60BA
square
#BA2FA6 #BA882F #2FBA43 #2F60BA
split-complementary
#BA2FA6 #60BA2F #2FBA88
monochromatic
#58164F #89237A #BA2FA6 #D353C1 #E084D3

Accessibility & contrast

On white

5.19
#BA2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BA2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FA6
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FA6#FFFFFF#000000##FFFFFF
##BA2FA61.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60A9
Deuteranopia (green-blind)
#6074A3
Tritanopia (blue-blind)
#C33B68
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2fa6;
/* rgb */ color: rgb(186, 47, 166);
/* oklch */ color: oklch(56.2% 0.214 334.7);
Tailwind
colors: {
  custom: {
    50: '#d376c1',
    500: '#ba2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fa6;
$custom-light: #d376c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fa6",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 308.633,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5623,
    "c": 0.21362,
    "h": 334.7
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

primary
#BA2FA6
secondary
#7CC987
accent
#E35C45
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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