#BA2EB5#BA2EB5

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

Color values

HEX#BA2EB5
RGBrgb(186, 46, 181)
HSLhsl(302, 60%, 45%)
HSVhsv(302, 75%, 73%)
CMYKcmyk(0%, 75.3%, 2.7%, 27.1%)
CIE-LABlab(46.62, 68.87, -41.21)
CIE-LCHlch(46.62, 80.26, 329.10°)
OKLaboklab(56.97% 0.1945 -0.1139)
OKLCHoklch(56.97% 0.225 329.6)
XYZxyz(29.5670, 15.7316, 45.1863)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EB5 #2EBA33
analogous
#792EBA #BA2EB5 #BA2E6F
triadic
#BA2EB5 #B5BA2E #2EB5BA
tetradic
#BA2EB5 #BA792E #2EBA33 #2E6FBA
square
#BA2EB5 #BA792E #2EBA33 #2E6FBA
split-complementary
#BA2EB5 #6FBA2E #2EBA79
monochromatic
#581656 #892285 #BA2EB5 #D451CF #E082DD

Accessibility & contrast

On white

5.07
#BA2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2EB5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EB5#FFFFFF#000000##FFFFFF
##BA2EB51.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1863B9
Deuteranopia (green-blind)
#5875B2
Tritanopia (blue-blind)
#C14270
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2eb5;
/* rgb */ color: rgb(186, 46, 181);
/* oklch */ color: oklch(57.0% 0.225 329.6);
Tailwind
colors: {
  custom: {
    50: '#d376cc',
    500: '#ba2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #ba2eb5;
$custom-light: #d376cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2eb5",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 302.143,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56968,
    "c": 0.2254,
    "h": 329.6
  },
  "luminance": 0.15729
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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