#BA3BAB#BA3BAB

#BA3BAB is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.5% C 0.204 H 333.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA3BAB
RGBrgb(186, 59, 171)
HSLhsl(307, 52%, 48%)
HSVhsv(307, 68%, 73%)
CMYKcmyk(0%, 68.3%, 8.1%, 27.1%)
CIE-LABlab(47.64, 62.95, -33.73)
CIE-LCHlch(47.64, 71.41, 331.82°)
OKLaboklab(57.53% 0.1814 -0.0924)
OKLCHoklch(57.53% 0.204 333)
XYZxyz(29.1645, 16.5097, 40.1708)
Luminance0.1651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3BAB #3BBA4A
analogous
#8A3BBA #BA3BAB #BA3B6B
triadic
#BA3BAB #ABBA3B #3BABBA
tetradic
#BA3BAB #BA8A3B #3BBA4A #3B6BBA
square
#BA3BAB #BA8A3B #3BBA4A #3B6BBA
split-complementary
#BA3BAB #6BBA3B #3BBA8A
monochromatic
#5D1E56 #8C2C80 #BA3BAB #CE64C1 #DD93D4

Accessibility & contrast

On white

4.88
#BA3BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#BA3BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3BAB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3BAB#FFFFFF#000000##FFFFFF
##BA3BAB1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3665AE
Deuteranopia (green-blind)
#6378A8
Tritanopia (blue-blind)
#C2476E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba3bab;
/* rgb */ color: rgb(186, 59, 171);
/* oklch */ color: oklch(57.5% 0.204 333.0);
Tailwind
colors: {
  custom: {
    50: '#d27bc4',
    500: '#ba3bab',
    950: '#000000',
  },
}
SCSS
$custom: #ba3bab;
$custom-light: #d27bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3bab",
  "rgb": {
    "r": 186,
    "g": 59,
    "b": 171
  },
  "hsl": {
    "h": 307.087,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57531,
    "c": 0.20361,
    "h": 333
  },
  "luminance": 0.16507
}

Semantic roles & 50–950 ramp

primary
#BA3BAB
secondary
#89C890
accent
#DB5D4D
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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