#BA3BB7#BA3BB7

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

Color values

HEX#BA3BB7
RGBrgb(186, 59, 183)
HSLhsl(301, 52%, 48%)
HSVhsv(301, 68%, 73%)
CMYKcmyk(0%, 68.3%, 1.6%, 27.1%)
CIE-LABlab(48.24, 64.87, -39.81)
CIE-LCHlch(48.24, 76.12, 328.46°)
OKLaboklab(58.17% 0.1822 -0.11)
OKLCHoklch(58.17% 0.213 328.9)
XYZxyz(30.3606, 16.9881, 46.4705)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3BB7 #3BBA3E
analogous
#7D3BBA #BA3BB7 #BA3B78
triadic
#BA3BB7 #B7BA3B #3BB7BA
tetradic
#BA3BB7 #BA7D3B #3BBA3E #3B78BA
square
#BA3BB7 #BA7D3B #3BBA3E #3B78BA
split-complementary
#BA3BB7 #78BA3B #3BBA7D
monochromatic
#5D1E5C #8C2C89 #BA3BB7 #CE64CB #DD93DB

Accessibility & contrast

On white

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

On black

4.40
#BA3BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA3BB7#FFFFFF#000000##FFFFFF
##BA3BB71.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BB
Deuteranopia (green-blind)
#5D78B4
Tritanopia (blue-blind)
#C04C75
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3bb7;
/* rgb */ color: rgb(186, 59, 183);
/* oklch */ color: oklch(58.2% 0.213 328.9);
Tailwind
colors: {
  custom: {
    50: '#d27ccd',
    500: '#ba3bb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3bb7;
$custom-light: #d27ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3bb7",
  "rgb": {
    "r": 186,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 301.417,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.58168,
    "c": 0.2128,
    "h": 328.9
  },
  "luminance": 0.16986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA3BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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