#BA3EC8#BA3EC8

#BA3EC8 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.223 H 323.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA3EC8
RGBrgb(186, 62, 200)
HSLhsl(294, 56%, 51%)
HSVhsv(294, 69%, 78%)
CMYKcmyk(7%, 69%, 0%, 21.6%)
CIE-LABlab(49.56, 66.66, -47.59)
CIE-LCHlch(49.56, 81.91, 324.48°)
OKLaboklab(59.41% 0.1792 -0.1326)
OKLCHoklch(59.41% 0.223 323.5)
XYZxyz(32.3967, 18.0564, 56.4112)
Luminance0.1805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EC8 #4CC83E
analogous
#753EC8 #BA3EC8 #C83E91
triadic
#BA3EC8 #C8BA3E #3EC8BA
tetradic
#BA3EC8 #C8753E #4CC83E #3E91C8
square
#BA3EC8 #C8753E #4CC83E #3E91C8
split-complementary
#BA3EC8 #91C83E #3EC875
monochromatic
#651F6D #912D9C #BA3EC8 #CB6ED6 #DC9DE3

Accessibility & contrast

On white

4.55
#BA3EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#BA3EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3EC8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EC8#FFFFFF#000000##000000
##BA3EC81.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#146CCC
Deuteranopia (green-blind)
#557BC5
Tritanopia (blue-blind)
#BD557F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba3ec8;
/* rgb */ color: rgb(186, 62, 200);
/* oklch */ color: oklch(59.4% 0.223 323.5);
Tailwind
colors: {
  custom: {
    50: '#d27ed9',
    500: '#ba3ec8',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ec8;
$custom-light: #d27ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ec8",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 200
  },
  "hsl": {
    "h": 293.913,
    "s": 55.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59415,
    "c": 0.22294,
    "h": 323.5
  },
  "luminance": 0.18054
}

Semantic roles & 50–950 ramp

primary
#BA3EC8
secondary
#99CF92
accent
#DF4958
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA3EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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