#BA4EC1#BA4EC1

#BA4EC1 is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.7% C 0.196 H 325.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA4EC1
RGBrgb(186, 78, 193)
HSLhsl(296, 48%, 53%)
HSVhsv(296, 60%, 76%)
CMYKcmyk(3.6%, 59.6%, 0%, 24.3%)
CIE-LABlab(51.54, 58.86, -40.41)
CIE-LCHlch(51.54, 71.40, 325.53°)
OKLaboklab(60.72% 0.161 -0.1118)
OKLCHoklch(60.72% 0.196 325.2)
XYZxyz(32.5990, 19.7400, 52.5349)
Luminance0.1974 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EC1 #55C14E
analogous
#804EC1 #BA4EC1 #C14E8E
triadic
#BA4EC1 #C1BA4E #4EC1BA
tetradic
#BA4EC1 #C1804E #55C14E #4E8EC1
square
#BA4EC1 #C1804E #55C14E #4E8EC1
split-complementary
#BA4EC1 #8EC14E #4EC180
monochromatic
#6A276E #95369B #BA4EC1 #CC7BD1 #DDA9E1

Accessibility & contrast

On white

4.24
#BA4EC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#BA4EC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EC1
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EC1#FFFFFF#000000##000000
##BA4EC11.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C72C5
Deuteranopia (green-blind)
#6380BE
Tritanopia (blue-blind)
#BE5E80
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4ec1;
/* rgb */ color: rgb(186, 78, 193);
/* oklch */ color: oklch(60.7% 0.196 325.2);
Tailwind
colors: {
  custom: {
    50: '#d286d4',
    500: '#ba4ec1',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ec1;
$custom-light: #d286d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ec1",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 193
  },
  "hsl": {
    "h": 296.348,
    "s": 48.117,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60723,
    "c": 0.19602,
    "h": 325.2
  },
  "luminance": 0.19738
}

Semantic roles & 50–950 ramp

primary
#BA4EC1
secondary
#A0CE9D
accent
#D85058
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA4EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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