#BA3EC6#BA3EC6

#BA3EC6 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.3% C 0.221 H 324.1°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA3EC6
RGBrgb(186, 62, 198)
HSLhsl(295, 54%, 51%)
HSVhsv(295, 69%, 78%)
CMYKcmyk(6.1%, 68.7%, 0%, 22.4%)
CIE-LABlab(49.45, 66.31, -46.61)
CIE-LCHlch(49.45, 81.06, 324.89°)
OKLaboklab(59.3% 0.1793 -0.1297)
OKLCHoklch(59.3% 0.221 324.1)
XYZxyz(32.1645, 17.9635, 55.1883)
Luminance0.1796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EC6 #4AC63E
analogous
#763EC6 #BA3EC6 #C63E8E
triadic
#BA3EC6 #C6BA3E #3EC6BA
tetradic
#BA3EC6 #C6763E #4AC63E #3E8EC6
square
#BA3EC6 #C6763E #4AC63E #3E8EC6
split-complementary
#BA3EC6 #8EC63E #3EC676
monochromatic
#641F6A #902D99 #BA3EC6 #CB6DD4 #DC9CE2

Accessibility & contrast

On white

4.57
#BA3EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#BA3EC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3EC6
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EC6#FFFFFF#000000##000000
##BA3EC61.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#196CCA
Deuteranopia (green-blind)
#567BC3
Tritanopia (blue-blind)
#BD547E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba3ec6;
/* rgb */ color: rgb(186, 62, 198);
/* oklch */ color: oklch(59.3% 0.221 324.1);
Tailwind
colors: {
  custom: {
    50: '#d27ed8',
    500: '#ba3ec6',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ec6;
$custom-light: #d27ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ec6",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 198
  },
  "hsl": {
    "h": 294.706,
    "s": 54.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59298,
    "c": 0.22129,
    "h": 324.1
  },
  "luminance": 0.17962
}

Semantic roles & 50–950 ramp

primary
#BA3EC6
secondary
#97CE92
accent
#DE4A57
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA3EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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