#BA2EB1#BA2EB1

#BA2EB1 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.222 H 330.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA2EB1
RGBrgb(186, 46, 177)
HSLhsl(304, 60%, 45%)
HSVhsv(304, 75%, 73%)
CMYKcmyk(0%, 75.3%, 4.8%, 27.1%)
CIE-LABlab(46.40, 68.25, -39.20)
CIE-LCHlch(46.40, 78.71, 330.13°)
OKLaboklab(56.74% 0.1944 -0.1081)
OKLCHoklch(56.74% 0.222 330.9)
XYZxyz(29.1625, 15.5698, 43.0558)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EB1 #2EBA37
analogous
#7D2EBA #BA2EB1 #BA2E6B
triadic
#BA2EB1 #B1BA2E #2EB1BA
tetradic
#BA2EB1 #BA7D2E #2EBA37 #2E6BBA
square
#BA2EB1 #BA7D2E #2EBA37 #2E6BBA
split-complementary
#BA2EB1 #6BBA2E #2EBA7D
monochromatic
#581654 #892282 #BA2EB1 #D451CC #E082DA

Accessibility & contrast

On white

5.11
#BA2EB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA2EB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EB1
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EB1#FFFFFF#000000##FFFFFF
##BA2EB11.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#5B75AE
Tritanopia (blue-blind)
#C1406E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2eb1;
/* rgb */ color: rgb(186, 46, 177);
/* oklch */ color: oklch(56.7% 0.222 330.9);
Tailwind
colors: {
  custom: {
    50: '#d376c9',
    500: '#ba2eb1',
    950: '#000000',
  },
}
SCSS
$custom: #ba2eb1;
$custom-light: #d376c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2eb1",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 303.857,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56744,
    "c": 0.22247,
    "h": 330.9
  },
  "luminance": 0.15567
}

Semantic roles & 50–950 ramp

primary
#BA2EB1
secondary
#7BC980
accent
#E34F44
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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