#BA3CA7#BA3CA7

#BA3CA7 is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.4% C 0.199 H 334.5°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA3CA7
RGBrgb(186, 60, 167)
HSLhsl(309, 51%, 48%)
HSVhsv(309, 68%, 73%)
CMYKcmyk(0%, 67.7%, 10.2%, 27.1%)
CIE-LABlab(47.58, 61.95, -31.46)
CIE-LCHlch(47.58, 69.48, 333.08°)
OKLaboklab(57.43% 0.18 -0.0859)
OKLCHoklch(57.43% 0.199 334.5)
XYZxyz(28.8409, 16.4632, 38.2105)
Luminance0.1646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3CA7 #3CBA4F
analogous
#8E3CBA #BA3CA7 #BA3C68
triadic
#BA3CA7 #A7BA3C #3CA7BA
tetradic
#BA3CA7 #BA8E3C #3CBA4F #3C68BA
square
#BA3CA7 #BA8E3C #3CBA4F #3C68BA
split-complementary
#BA3CA7 #68BA3C #3CBA8E
monochromatic
#5D1E54 #8C2D7D #BA3CA7 #CE66BE #DC94D2

Accessibility & contrast

On white

4.89
#BA3CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BA3CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3CA7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3CA7#FFFFFF#000000##FFFFFF
##BA3CA71.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65AA
Deuteranopia (green-blind)
#6578A4
Tritanopia (blue-blind)
#C3466C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba3ca7;
/* rgb */ color: rgb(186, 60, 167);
/* oklch */ color: oklch(57.4% 0.199 334.5);
Tailwind
colors: {
  custom: {
    50: '#d27cc1',
    500: '#ba3ca7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ca7;
$custom-light: #d27cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ca7",
  "rgb": {
    "r": 186,
    "g": 60,
    "b": 167
  },
  "hsl": {
    "h": 309.048,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57425,
    "c": 0.1994,
    "h": 334.5
  },
  "luminance": 0.16461
}

Semantic roles & 50–950 ramp

primary
#BA3CA7
secondary
#8AC893
accent
#DB624D
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA3CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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