#BA3BB8#BA3BB8

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

Color values

HEX#BA3BB8
RGBrgb(186, 59, 184)
HSLhsl(301, 52%, 48%)
HSVhsv(301, 68%, 73%)
CMYKcmyk(0%, 68.3%, 1.1%, 27.1%)
CIE-LABlab(48.30, 65.04, -40.31)
CIE-LCHlch(48.30, 76.52, 328.21°)
OKLaboklab(58.22% 0.1822 -0.1114)
OKLCHoklch(58.22% 0.214 328.6)
XYZxyz(30.4651, 17.0299, 47.0206)
Luminance0.1703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3BB8 #3BBA3D
analogous
#7C3BBA #BA3BB8 #BA3B78
triadic
#BA3BB8 #B8BA3B #3BB8BA
tetradic
#BA3BB8 #BA7C3B #3BBA3D #3B78BA
square
#BA3BB8 #BA7C3B #3BBA3D #3B78BA
split-complementary
#BA3BB8 #78BA3B #3BBA7C
monochromatic
#5D1E5C #8C2C8A #BA3BB8 #CE64CC #DD93DB

Accessibility & contrast

On white

4.77
#BA3BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#BA3BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3BB8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3BB8#FFFFFF#000000##FFFFFF
##BA3BB81.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2968BC
Deuteranopia (green-blind)
#5D79B5
Tritanopia (blue-blind)
#C04C75
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3bb8;
/* rgb */ color: rgb(186, 59, 184);
/* oklch */ color: oklch(58.2% 0.214 328.6);
Tailwind
colors: {
  custom: {
    50: '#d27cce',
    500: '#ba3bb8',
    950: '#000000',
  },
}
SCSS
$custom: #ba3bb8;
$custom-light: #d27cce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3bb8",
  "rgb": {
    "r": 186,
    "g": 59,
    "b": 184
  },
  "hsl": {
    "h": 300.945,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.58223,
    "c": 0.21358,
    "h": 328.6
  },
  "luminance": 0.17028
}

Semantic roles & 50–950 ramp

primary
#BA3BB8
secondary
#89C88A
accent
#DB4F4D
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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