#BA3AB9#BA3AB9

#BA3AB9 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.2% C 0.216 H 328.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA3AB9
RGBrgb(186, 58, 185)
HSLhsl(300, 52%, 48%)
HSVhsv(300, 69%, 73%)
CMYKcmyk(0%, 68.8%, 0.5%, 27.1%)
CIE-LABlab(48.22, 65.56, -41.02)
CIE-LCHlch(48.22, 77.34, 327.97°)
OKLaboklab(58.19% 0.1833 -0.1134)
OKLCHoklch(58.19% 0.216 328.2)
XYZxyz(30.5193, 16.9702, 47.5577)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AB9 #3ABA3B
analogous
#7B3ABA #BA3AB9 #BA3A79
triadic
#BA3AB9 #B9BA3A #3AB9BA
tetradic
#BA3AB9 #BA7B3A #3ABA3B #3A79BA
square
#BA3AB9 #BA7B3A #3ABA3B #3A79BA
split-complementary
#BA3AB9 #79BA3A #3ABA7B
monochromatic
#5D1D5C #8B2B8B #BA3AB9 #CE63CD #DD92DC

Accessibility & contrast

On white

4.78
#BA3AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA3AB9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AB9#FFFFFF#000000##FFFFFF
##BA3AB91.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2768BD
Deuteranopia (green-blind)
#5C78B6
Tritanopia (blue-blind)
#C04C75
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3ab9;
/* rgb */ color: rgb(186, 58, 185);
/* oklch */ color: oklch(58.2% 0.216 328.2);
Tailwind
colors: {
  custom: {
    50: '#d27bce',
    500: '#ba3ab9',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ab9;
$custom-light: #d27bce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ab9",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 185
  },
  "hsl": {
    "h": 300.469,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58186,
    "c": 0.21554,
    "h": 328.2
  },
  "luminance": 0.16968
}

Semantic roles & 50–950 ramp

primary
#BA3AB9
secondary
#88C888
accent
#DC4D4C
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA3AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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