#BA4EC2#BA4EC2

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

Color values

HEX#BA4EC2
RGBrgb(186, 78, 194)
HSLhsl(296, 49%, 53%)
HSVhsv(296, 60%, 76%)
CMYKcmyk(4.1%, 59.8%, 0%, 23.9%)
CIE-LABlab(51.59, 59.04, -40.91)
CIE-LCHlch(51.59, 71.83, 325.28°)
OKLaboklab(60.78% 0.1611 -0.1133)
OKLCHoklch(60.78% 0.197 324.9)
XYZxyz(32.7109, 19.7848, 53.1244)
Luminance0.1978 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EC2 #56C24E
analogous
#804EC2 #BA4EC2 #C24E90
triadic
#BA4EC2 #C2BA4E #4EC2BA
tetradic
#BA4EC2 #C2804E #56C24E #4E90C2
square
#BA4EC2 #C2804E #56C24E #4E90C2
split-complementary
#BA4EC2 #90C24E #4EC280
monochromatic
#6A266F #96369D #BA4EC2 #CC7CD2 #DDA9E1

Accessibility & contrast

On white

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

On black

4.96
#BA4EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EC2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EC2#FFFFFF#000000##000000
##BA4EC21.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba4ec2;
/* rgb */ color: rgb(186, 78, 194);
/* oklch */ color: oklch(60.8% 0.197 324.9);
Tailwind
colors: {
  custom: {
    50: '#d286d5',
    500: '#ba4ec2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ec2;
$custom-light: #d286d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ec2",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 295.862,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60777,
    "c": 0.19691,
    "h": 324.9
  },
  "luminance": 0.19783
}

Semantic roles & 50–950 ramp

primary
#BA4EC2
secondary
#A0CF9D
accent
#D85059
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA4EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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