#BA3CB7#BA3CB7

#BA3CB7 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.212 H 328.9°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA3CB7
RGBrgb(186, 60, 183)
HSLhsl(301, 51%, 48%)
HSVhsv(301, 68%, 73%)
CMYKcmyk(0%, 67.7%, 1.6%, 27.1%)
CIE-LABlab(48.38, 64.50, -39.61)
CIE-LCHlch(48.38, 75.69, 328.45°)
OKLaboklab(58.26% 0.1811 -0.1094)
OKLCHoklch(58.26% 0.212 328.9)
XYZxyz(30.4125, 17.0919, 46.4878)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3CB7 #3CBA3F
analogous
#7E3CBA #BA3CB7 #BA3C78
triadic
#BA3CB7 #B7BA3C #3CB7BA
tetradic
#BA3CB7 #BA7E3C #3CBA3F #3C78BA
square
#BA3CB7 #BA7E3C #3CBA3F #3C78BA
split-complementary
#BA3CB7 #78BA3C #3CBA7E
monochromatic
#5D1E5C #8C2D89 #BA3CB7 #CE66CB #DC94DB

Accessibility & contrast

On white

4.75
#BA3CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#BA3CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3CB7
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3CB7#FFFFFF#000000##FFFFFF
##BA3CB71.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C68BB
Deuteranopia (green-blind)
#5E79B4
Tritanopia (blue-blind)
#C04D75
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3cb7;
/* rgb */ color: rgb(186, 60, 183);
/* oklch */ color: oklch(58.3% 0.212 328.9);
Tailwind
colors: {
  custom: {
    50: '#d27ccd',
    500: '#ba3cb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3cb7;
$custom-light: #d27ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3cb7",
  "rgb": {
    "r": 186,
    "g": 60,
    "b": 183
  },
  "hsl": {
    "h": 301.429,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.58262,
    "c": 0.21159,
    "h": 328.9
  },
  "luminance": 0.1709
}

Semantic roles & 50–950 ramp

primary
#BA3CB7
secondary
#8AC88B
accent
#DB504D
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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