#BA2EB9#BA2EB9

#BA2EB9 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.228 H 328.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA2EB9
RGBrgb(186, 46, 185)
HSLhsl(300, 60%, 45%)
HSVhsv(300, 75%, 73%)
CMYKcmyk(0%, 75.3%, 0.5%, 27.1%)
CIE-LABlab(46.84, 69.50, -43.21)
CIE-LCHlch(46.84, 81.84, 328.13°)
OKLaboklab(57.2% 0.1945 -0.1197)
OKLCHoklch(57.2% 0.228 328.4)
XYZxyz(29.9833, 15.8981, 47.3790)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EB9 #2EBA2F
analogous
#752EBA #BA2EB9 #BA2E73
triadic
#BA2EB9 #B9BA2E #2EB9BA
tetradic
#BA2EB9 #BA752E #2EBA2F #2E73BA
square
#BA2EB9 #BA752E #2EBA2F #2E73BA
split-complementary
#BA2EB9 #73BA2E #2EBA75
monochromatic
#581657 #892288 #BA2EB9 #D451D3 #E082DF

Accessibility & contrast

On white

5.02
#BA2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BA2EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EB9
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EB9#FFFFFF#000000##FFFFFF
##BA2EB91.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D63BD
Deuteranopia (green-blind)
#5675B6
Tritanopia (blue-blind)
#C04472
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2eb9;
/* rgb */ color: rgb(186, 46, 185);
/* oklch */ color: oklch(57.2% 0.228 328.4);
Tailwind
colors: {
  custom: {
    50: '#d376ce',
    500: '#ba2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #ba2eb9;
$custom-light: #d376ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2eb9",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 300.429,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.57196,
    "c": 0.22836,
    "h": 328.4
  },
  "luminance": 0.15896
}

Semantic roles & 50–950 ramp

primary
#BA2EB9
secondary
#7BC97B
accent
#E34544
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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