#BA2EC7#BA2EC7

#BA2EC7 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 58.0% C 0.239 H 324.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA2EC7
RGBrgb(186, 46, 199)
HSLhsl(295, 62%, 48%)
HSVhsv(295, 77%, 78%)
CMYKcmyk(6.5%, 76.9%, 0%, 22%)
CIE-LABlab(47.65, 71.80, -50.07)
CIE-LCHlch(47.65, 87.53, 325.11°)
OKLaboklab(58.03% 0.1938 -0.1397)
OKLCHoklch(58.03% 0.239 324.2)
XYZxyz(31.5346, 16.5186, 55.5492)
Luminance0.1652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EC7 #3BC72E
analogous
#6D2EC7 #BA2EC7 #C72E87
triadic
#BA2EC7 #C7BA2E #2EC7BA
tetradic
#BA2EC7 #C76D2E #3BC72E #2E87C7
square
#BA2EC7 #C76D2E #3BC72E #2E87C7
split-complementary
#BA2EC7 #87C72E #2EC76D
monochromatic
#5D1764 #8C2395 #BA2EC7 #CE59D9 #DD8BE4

Accessibility & contrast

On white

4.88
#BA2EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#BA2EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EC7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EC7#FFFFFF#000000##FFFFFF
##BA2EC71.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#4D77C3
Tritanopia (blue-blind)
#BE4B7A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba2ec7;
/* rgb */ color: rgb(186, 46, 199);
/* oklch */ color: oklch(58.0% 0.239 324.2);
Tailwind
colors: {
  custom: {
    50: '#d377d9',
    500: '#ba2ec7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ec7;
$custom-light: #d377d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ec7",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 294.902,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.58029,
    "c": 0.23894,
    "h": 324.2
  },
  "luminance": 0.16517
}

Semantic roles & 50–950 ramp

primary
#BA2EC7
secondary
#89CE83
accent
#E64250
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA2EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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