#BA3AB2#BA3AB2

#BA3AB2 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.210 H 330.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA3AB2
RGBrgb(186, 58, 178)
HSLhsl(304, 52%, 48%)
HSVhsv(304, 69%, 73%)
CMYKcmyk(0%, 68.8%, 4.3%, 27.1%)
CIE-LABlab(47.86, 64.42, -37.50)
CIE-LCHlch(47.86, 74.54, 329.80°)
OKLaboklab(57.8% 0.183 -0.1033)
OKLCHoklch(57.8% 0.21 330.6)
XYZxyz(29.7985, 16.6818, 43.7613)
Luminance0.1668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AB2 #3ABA42
analogous
#823ABA #BA3AB2 #BA3A72
triadic
#BA3AB2 #B2BA3A #3AB2BA
tetradic
#BA3AB2 #BA823A #3ABA42 #3A72BA
square
#BA3AB2 #BA823A #3ABA42 #3A72BA
split-complementary
#BA3AB2 #72BA3A #3ABA82
monochromatic
#5D1D59 #8B2B85 #BA3AB2 #CE63C8 #DD92D8

Accessibility & contrast

On white

4.84
#BA3AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BA3AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3AB2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AB2#FFFFFF#000000##FFFFFF
##BA3AB21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#5F78AF
Tritanopia (blue-blind)
#C14972
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3ab2;
/* rgb */ color: rgb(186, 58, 178);
/* oklch */ color: oklch(57.8% 0.210 330.6);
Tailwind
colors: {
  custom: {
    50: '#d27bc9',
    500: '#ba3ab2',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ab2;
$custom-light: #d27bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ab2",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 303.75,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57804,
    "c": 0.21013,
    "h": 330.6
  },
  "luminance": 0.1668
}

Semantic roles & 50–950 ramp

primary
#BA3AB2
secondary
#88C88C
accent
#DC554C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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