#BA2EB3#BA2EB3

#BA2EB3 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.9% C 0.224 H 330.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA2EB3
RGBrgb(186, 46, 179)
HSLhsl(303, 60%, 45%)
HSVhsv(303, 75%, 73%)
CMYKcmyk(0%, 75.3%, 3.8%, 27.1%)
CIE-LABlab(46.51, 68.56, -40.21)
CIE-LCHlch(46.51, 79.48, 329.61°)
OKLaboklab(56.86% 0.1945 -0.111)
OKLCHoklch(56.86% 0.224 330.3)
XYZxyz(29.3633, 15.6501, 44.1133)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EB3 #2EBA35
analogous
#7B2EBA #BA2EB3 #BA2E6D
triadic
#BA2EB3 #B3BA2E #2EB3BA
tetradic
#BA2EB3 #BA7B2E #2EBA35 #2E6DBA
square
#BA2EB3 #BA7B2E #2EBA35 #2E6DBA
split-complementary
#BA2EB3 #6DBA2E #2EBA7B
monochromatic
#581655 #892284 #BA2EB3 #D451CD #E082DB

Accessibility & contrast

On white

5.09
#BA2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#BA2EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EB3
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EB3#FFFFFF#000000##FFFFFF
##BA2EB31.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B62B7
Deuteranopia (green-blind)
#5A75B0
Tritanopia (blue-blind)
#C1416F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2eb3;
/* rgb */ color: rgb(186, 46, 179);
/* oklch */ color: oklch(56.9% 0.224 330.3);
Tailwind
colors: {
  custom: {
    50: '#d376ca',
    500: '#ba2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #ba2eb3;
$custom-light: #d376ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2eb3",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 303,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56855,
    "c": 0.22392,
    "h": 330.3
  },
  "luminance": 0.15648
}

Semantic roles & 50–950 ramp

primary
#BA2EB3
secondary
#7BC97F
accent
#E34C44
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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