#BA2AC7#BA2AC7

#BA2AC7 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.8% C 0.242 H 324.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA2AC7
RGBrgb(186, 42, 199)
HSLhsl(295, 65%, 47%)
HSVhsv(295, 79%, 78%)
CMYKcmyk(6.5%, 78.9%, 0%, 22%)
CIE-LABlab(47.26, 72.91, -50.69)
CIE-LCHlch(47.26, 88.80, 325.19°)
OKLaboklab(57.76% 0.1969 -0.1415)
OKLCHoklch(57.76% 0.242 324.3)
XYZxyz(31.3856, 16.2206, 55.4995)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AC7 #37C72A
analogous
#6C2AC7 #BA2AC7 #C72A85
triadic
#BA2AC7 #C7BA2A #2AC7BA
tetradic
#BA2AC7 #C76C2A #37C72A #2A85C7
square
#BA2AC7 #C76C2A #37C72A #2A85C7
split-complementary
#BA2AC7 #85C72A #2AC76C
monochromatic
#5C1562 #8B1F94 #BA2AC7 #D053DB #DE86E5

Accessibility & contrast

On white

4.95
#BA2AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BA2AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AC7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AC7#FFFFFF#000000##FFFFFF
##BA2AC71.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#4B76C3
Tritanopia (blue-blind)
#BE4979
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba2ac7;
/* rgb */ color: rgb(186, 42, 199);
/* oklch */ color: oklch(57.8% 0.242 324.3);
Tailwind
colors: {
  custom: {
    50: '#d375d9',
    500: '#ba2ac7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ac7;
$custom-light: #d375d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ac7",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 295.032,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57757,
    "c": 0.24246,
    "h": 324.3
  },
  "luminance": 0.16219
}

Semantic roles & 50–950 ramp

primary
#BA2AC7
secondary
#85CF7E
accent
#E8404E
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA2AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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