#BA4EC3#BA4EC3

#BA4EC3 is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.8% C 0.198 H 324.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA4EC3
RGBrgb(186, 78, 195)
HSLhsl(295, 49%, 54%)
HSVhsv(295, 60%, 76%)
CMYKcmyk(4.6%, 60%, 0%, 23.5%)
CIE-LABlab(51.64, 59.22, -41.41)
CIE-LCHlch(51.64, 72.26, 325.04°)
OKLaboklab(60.83% 0.1611 -0.1147)
OKLCHoklch(60.83% 0.198 324.5)
XYZxyz(32.8236, 19.8299, 53.7178)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EC3 #57C34E
analogous
#7F4EC3 #BA4EC3 #C34E91
triadic
#BA4EC3 #C3BA4E #4EC3BA
tetradic
#BA4EC3 #C37F4E #57C34E #4E91C3
square
#BA4EC3 #C37F4E #57C34E #4E91C3
split-complementary
#BA4EC3 #91C34E #4EC37F
monochromatic
#6B2670 #96369E #BA4EC3 #CC7CD2 #DEA9E2

Accessibility & contrast

On white

4.23
#BA4EC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA4EC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EC3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EC3#FFFFFF#000000##000000
##BA4EC31.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B73C7
Deuteranopia (green-blind)
#6280C0
Tritanopia (blue-blind)
#BE5E81
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4ec3;
/* rgb */ color: rgb(186, 78, 195);
/* oklch */ color: oklch(60.8% 0.198 324.5);
Tailwind
colors: {
  custom: {
    50: '#d286d5',
    500: '#ba4ec3',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ec3;
$custom-light: #d286d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ec3",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 195
  },
  "hsl": {
    "h": 295.385,
    "s": 49.367,
    "l": 53.529
  },
  "oklch": {
    "l": 0.60831,
    "c": 0.19779,
    "h": 324.5
  },
  "luminance": 0.19828
}

Semantic roles & 50–950 ramp

primary
#BA4EC3
secondary
#A1CF9D
accent
#D94F5A
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA4EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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