#BA3BA7#BA3BA7

#BA3BA7 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.3% C 0.201 H 334.5°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BA3BA7
RGBrgb(186, 59, 167)
HSLhsl(309, 52%, 48%)
HSVhsv(309, 68%, 73%)
CMYKcmyk(0%, 68.3%, 10.2%, 27.1%)
CIE-LABlab(47.44, 62.33, -31.67)
CIE-LCHlch(47.44, 69.91, 333.07°)
OKLaboklab(57.33% 0.1811 -0.0865)
OKLCHoklch(57.33% 0.201 334.5)
XYZxyz(28.7890, 16.3595, 38.1932)
Luminance0.1636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3BA7 #3BBA4E
analogous
#8D3BBA #BA3BA7 #BA3B68
triadic
#BA3BA7 #A7BA3B #3BA7BA
tetradic
#BA3BA7 #BA8D3B #3BBA4E #3B68BA
square
#BA3BA7 #BA8D3B #3BBA4E #3B68BA
split-complementary
#BA3BA7 #68BA3B #3BBA8D
monochromatic
#5D1E54 #8C2C7D #BA3BA7 #CE64BE #DD93D2

Accessibility & contrast

On white

4.92
#BA3BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#BA3BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3BA7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3BA7#FFFFFF#000000##FFFFFF
##BA3BA71.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AA
Deuteranopia (green-blind)
#6577A4
Tritanopia (blue-blind)
#C3456C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba3ba7;
/* rgb */ color: rgb(186, 59, 167);
/* oklch */ color: oklch(57.3% 0.201 334.5);
Tailwind
colors: {
  custom: {
    50: '#d27bc1',
    500: '#ba3ba7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ba7;
$custom-light: #d27bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ba7",
  "rgb": {
    "r": 186,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 308.976,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57328,
    "c": 0.20065,
    "h": 334.5
  },
  "luminance": 0.16357
}

Semantic roles & 50–950 ramp

primary
#BA3BA7
secondary
#89C892
accent
#DB624D
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA3BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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