#BA3EC7#BA3EC7

#BA3EC7 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.4% C 0.222 H 323.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BA3EC7
RGBrgb(186, 62, 199)
HSLhsl(294, 55%, 51%)
HSVhsv(294, 69%, 78%)
CMYKcmyk(6.5%, 68.8%, 0%, 22%)
CIE-LABlab(49.51, 66.49, -47.10)
CIE-LCHlch(49.51, 81.48, 324.68°)
OKLaboklab(59.36% 0.1793 -0.1312)
OKLCHoklch(59.36% 0.222 323.8)
XYZxyz(32.2802, 18.0098, 55.7977)
Luminance0.1801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EC7 #4BC73E
analogous
#753EC7 #BA3EC7 #C73E8F
triadic
#BA3EC7 #C7BA3E #3EC7BA
tetradic
#BA3EC7 #C7753E #4BC73E #3E8FC7
square
#BA3EC7 #C7753E #4BC73E #3E8FC7
split-complementary
#BA3EC7 #8FC73E #3EC775
monochromatic
#641F6B #902D9B #BA3EC7 #CB6DD5 #DC9DE3

Accessibility & contrast

On white

4.56
#BA3EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#BA3EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3EC7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EC7#FFFFFF#000000##000000
##BA3EC71.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#176CCB
Deuteranopia (green-blind)
#557BC4
Tritanopia (blue-blind)
#BD557E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba3ec7;
/* rgb */ color: rgb(186, 62, 199);
/* oklch */ color: oklch(59.4% 0.222 323.8);
Tailwind
colors: {
  custom: {
    50: '#d27ed8',
    500: '#ba3ec7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ec7;
$custom-light: #d27ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ec7",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 199
  },
  "hsl": {
    "h": 294.307,
    "s": 55.02,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59357,
    "c": 0.22212,
    "h": 323.8
  },
  "luminance": 0.18008
}

Semantic roles & 50–950 ramp

primary
#BA3EC7
secondary
#98CF92
accent
#DE4958
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA3EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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