#BA3EC2#BA3EC2

#BA3EC2 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.218 H 325.3°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA3EC2
RGBrgb(186, 62, 194)
HSLhsl(296, 52%, 50%)
HSVhsv(296, 68%, 76%)
CMYKcmyk(4.1%, 68%, 0%, 23.9%)
CIE-LABlab(49.23, 65.62, -44.65)
CIE-LCHlch(49.23, 79.37, 325.76°)
OKLaboklab(59.07% 0.1793 -0.124)
OKLCHoklch(59.07% 0.218 325.3)
XYZxyz(31.7092, 17.7814, 52.7905)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EC2 #46C23E
analogous
#783EC2 #BA3EC2 #C23E88
triadic
#BA3EC2 #C2BA3E #3EC2BA
tetradic
#BA3EC2 #C2783E #46C23E #3E88C2
square
#BA3EC2 #C2783E #46C23E #3E88C2
split-complementary
#BA3EC2 #88C23E #3EC278
monochromatic
#612066 #8E2F94 #BA3EC2 #CB6DD1 #DB9BDF

Accessibility & contrast

On white

4.61
#BA3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BA3EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EC2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EC2#FFFFFF#000000##FFFFFF
##BA3EC21.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216BC6
Deuteranopia (green-blind)
#597ABF
Tritanopia (blue-blind)
#BE537B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba3ec2;
/* rgb */ color: rgb(186, 62, 194);
/* oklch */ color: oklch(59.1% 0.218 325.3);
Tailwind
colors: {
  custom: {
    50: '#d27ed5',
    500: '#ba3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ec2;
$custom-light: #d27ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ec2",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 296.364,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59067,
    "c": 0.21801,
    "h": 325.3
  },
  "luminance": 0.17779
}

Semantic roles & 50–950 ramp

primary
#BA3EC2
secondary
#94CB90
accent
#DB4C55
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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