#BA2EB6#BA2EB6

#BA2EB6 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.226 H 329.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA2EB6
RGBrgb(186, 46, 182)
HSLhsl(302, 60%, 45%)
HSVhsv(302, 75%, 73%)
CMYKcmyk(0%, 75.3%, 2.2%, 27.1%)
CIE-LABlab(46.67, 69.03, -41.71)
CIE-LCHlch(46.67, 80.65, 328.86°)
OKLaboklab(57.02% 0.1945 -0.1154)
OKLCHoklch(57.02% 0.226 329.3)
XYZxyz(29.6700, 15.7728, 45.7287)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EB6 #2EBA32
analogous
#782EBA #BA2EB6 #BA2E70
triadic
#BA2EB6 #B6BA2E #2EB6BA
tetradic
#BA2EB6 #BA782E #2EBA32 #2E70BA
square
#BA2EB6 #BA782E #2EBA32 #2E70BA
split-complementary
#BA2EB6 #70BA2E #2EBA78
monochromatic
#581656 #892286 #BA2EB6 #D451D0 #E082DD

Accessibility & contrast

On white

5.06
#BA2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA2EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EB6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EB6#FFFFFF#000000##FFFFFF
##BA2EB61.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1563BA
Deuteranopia (green-blind)
#5875B3
Tritanopia (blue-blind)
#C14370
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2eb6;
/* rgb */ color: rgb(186, 46, 182);
/* oklch */ color: oklch(57.0% 0.226 329.3);
Tailwind
colors: {
  custom: {
    50: '#d376cc',
    500: '#ba2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #ba2eb6;
$custom-light: #d376cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2eb6",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 301.714,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.57024,
    "c": 0.22613,
    "h": 329.3
  },
  "luminance": 0.1577
}

Semantic roles & 50–950 ramp

primary
#BA2EB6
secondary
#7BC97D
accent
#E34944
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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