#BA3AB6#BA3AB6

#BA3AB6 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.213 H 329.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BA3AB6
RGBrgb(186, 58, 182)
HSLhsl(302, 52%, 48%)
HSVhsv(302, 69%, 73%)
CMYKcmyk(0%, 68.8%, 2.2%, 27.1%)
CIE-LABlab(48.06, 65.07, -39.51)
CIE-LCHlch(48.06, 76.13, 328.73°)
OKLaboklab(58.02% 0.1832 -0.1091)
OKLCHoklch(58.02% 0.213 329.2)
XYZxyz(30.2060, 16.8448, 45.9073)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AB6 #3ABA3E
analogous
#7E3ABA #BA3AB6 #BA3A76
triadic
#BA3AB6 #B6BA3A #3AB6BA
tetradic
#BA3AB6 #BA7E3A #3ABA3E #3A76BA
square
#BA3AB6 #BA7E3A #3ABA3E #3A76BA
split-complementary
#BA3AB6 #76BA3A #3ABA7E
monochromatic
#5D1D5B #8B2B88 #BA3AB6 #CE63CB #DD92DB

Accessibility & contrast

On white

4.81
#BA3AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BA3AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3AB6
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AB6#FFFFFF#000000##FFFFFF
##BA3AB61.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A67BA
Deuteranopia (green-blind)
#5D78B3
Tritanopia (blue-blind)
#C04B74
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3ab6;
/* rgb */ color: rgb(186, 58, 182);
/* oklch */ color: oklch(58.0% 0.213 329.2);
Tailwind
colors: {
  custom: {
    50: '#d27bcc',
    500: '#ba3ab6',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ab6;
$custom-light: #d27bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ab6",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 301.875,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5802,
    "c": 0.21321,
    "h": 329.2
  },
  "luminance": 0.16843
}

Semantic roles & 50–950 ramp

primary
#BA3AB6
secondary
#88C88A
accent
#DC504C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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