#BA2EB4#BA2EB4

#BA2EB4 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.9% C 0.225 H 330.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA2EB4
RGBrgb(186, 46, 180)
HSLhsl(303, 60%, 45%)
HSVhsv(303, 75%, 73%)
CMYKcmyk(0%, 75.3%, 3.2%, 27.1%)
CIE-LABlab(46.57, 68.71, -40.71)
CIE-LCHlch(46.57, 79.87, 329.35°)
OKLaboklab(56.91% 0.1945 -0.1125)
OKLCHoklch(56.91% 0.225 330)
XYZxyz(29.4648, 15.6907, 44.6479)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EB4 #2EBA34
analogous
#7A2EBA #BA2EB4 #BA2E6E
triadic
#BA2EB4 #B4BA2E #2EB4BA
tetradic
#BA2EB4 #BA7A2E #2EBA34 #2E6EBA
square
#BA2EB4 #BA7A2E #2EBA34 #2E6EBA
split-complementary
#BA2EB4 #6EBA2E #2EBA7A
monochromatic
#581655 #892285 #BA2EB4 #D451CE #E082DC

Accessibility & contrast

On white

5.08
#BA2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA2EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EB4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EB4#FFFFFF#000000##FFFFFF
##BA2EB41.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A62B8
Deuteranopia (green-blind)
#5975B1
Tritanopia (blue-blind)
#C1426F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2eb4;
/* rgb */ color: rgb(186, 46, 180);
/* oklch */ color: oklch(56.9% 0.225 330.0);
Tailwind
colors: {
  custom: {
    50: '#d376cb',
    500: '#ba2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #ba2eb4;
$custom-light: #d376cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2eb4",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 302.571,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56911,
    "c": 0.22466,
    "h": 330
  },
  "luminance": 0.15688
}

Semantic roles & 50–950 ramp

primary
#BA2EB4
secondary
#7BC97E
accent
#E34B44
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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