#BA3EC5#BA3EC5

#BA3EC5 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.2% C 0.220 H 324.4°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#BA3EC5
RGBrgb(186, 62, 197)
HSLhsl(295, 54%, 51%)
HSVhsv(295, 69%, 77%)
CMYKcmyk(5.6%, 68.5%, 0%, 22.7%)
CIE-LABlab(49.40, 66.14, -46.13)
CIE-LCHlch(49.40, 80.63, 325.11°)
OKLaboklab(59.24% 0.1793 -0.1283)
OKLCHoklch(59.24% 0.22 324.4)
XYZxyz(32.0495, 17.9175, 54.5828)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EC5 #49C53E
analogous
#763EC5 #BA3EC5 #C53E8C
triadic
#BA3EC5 #C5BA3E #3EC5BA
tetradic
#BA3EC5 #C5763E #49C53E #3E8CC5
square
#BA3EC5 #C5763E #49C53E #3E8CC5
split-complementary
#BA3EC5 #8CC53E #3EC576
monochromatic
#632069 #8F2E98 #BA3EC5 #CB6DD3 #DC9CE1

Accessibility & contrast

On white

4.58
#BA3EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#BA3EC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3EC5
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EC5#FFFFFF#000000##000000
##BA3EC51.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B6CC9
Deuteranopia (green-blind)
#577BC2
Tritanopia (blue-blind)
#BE547D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba3ec5;
/* rgb */ color: rgb(186, 62, 197);
/* oklch */ color: oklch(59.2% 0.220 324.4);
Tailwind
colors: {
  custom: {
    50: '#d27ed7',
    500: '#ba3ec5',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ec5;
$custom-light: #d27ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ec5",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 295.111,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5924,
    "c": 0.22047,
    "h": 324.4
  },
  "luminance": 0.17916
}

Semantic roles & 50–950 ramp

primary
#BA3EC5
secondary
#96CD91
accent
#DD4B57
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA3EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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