#BA3AB8#BA3AB8

#BA3AB8 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.215 H 328.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA3AB8
RGBrgb(186, 58, 184)
HSLhsl(301, 52%, 48%)
HSVhsv(301, 69%, 73%)
CMYKcmyk(0%, 68.8%, 1.1%, 27.1%)
CIE-LABlab(48.17, 65.40, -40.52)
CIE-LCHlch(48.17, 76.93, 328.22°)
OKLaboklab(58.13% 0.1833 -0.112)
OKLCHoklch(58.13% 0.215 328.6)
XYZxyz(30.4142, 16.9281, 47.0036)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AB8 #3ABA3C
analogous
#7C3ABA #BA3AB8 #BA3A78
triadic
#BA3AB8 #B8BA3A #3AB8BA
tetradic
#BA3AB8 #BA7C3A #3ABA3C #3A78BA
square
#BA3AB8 #BA7C3A #3ABA3C #3A78BA
split-complementary
#BA3AB8 #78BA3A #3ABA7C
monochromatic
#5D1D5C #8B2B8A #BA3AB8 #CE63CD #DD92DC

Accessibility & contrast

On white

4.79
#BA3AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#BA3AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3AB8
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AB8#FFFFFF#000000##FFFFFF
##BA3AB81.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2868BC
Deuteranopia (green-blind)
#5C78B5
Tritanopia (blue-blind)
#C04C75
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3ab8;
/* rgb */ color: rgb(186, 58, 184);
/* oklch */ color: oklch(58.1% 0.215 328.6);
Tailwind
colors: {
  custom: {
    50: '#d27bce',
    500: '#ba3ab8',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ab8;
$custom-light: #d27bce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ab8",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 300.938,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5813,
    "c": 0.21477,
    "h": 328.6
  },
  "luminance": 0.16926
}

Semantic roles & 50–950 ramp

primary
#BA3AB8
secondary
#88C889
accent
#DC4E4C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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