#BA2EB7#BA2EB7

#BA2EB7 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.1% C 0.227 H 329.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA2EB7
RGBrgb(186, 46, 183)
HSLhsl(301, 60%, 45%)
HSVhsv(301, 75%, 73%)
CMYKcmyk(0%, 75.3%, 1.6%, 27.1%)
CIE-LABlab(46.73, 69.19, -42.21)
CIE-LCHlch(46.73, 81.05, 328.61°)
OKLaboklab(57.08% 0.1945 -0.1168)
OKLCHoklch(57.08% 0.227 329)
XYZxyz(29.7737, 15.8143, 46.2749)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EB7 #2EBA31
analogous
#772EBA #BA2EB7 #BA2E71
triadic
#BA2EB7 #B7BA2E #2EB7BA
tetradic
#BA2EB7 #BA772E #2EBA31 #2E71BA
square
#BA2EB7 #BA772E #2EBA31 #2E71BA
split-complementary
#BA2EB7 #71BA2E #2EBA77
monochromatic
#581656 #892287 #BA2EB7 #D451D1 #E082DE

Accessibility & contrast

On white

5.05
#BA2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA2EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EB7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EB7#FFFFFF#000000##FFFFFF
##BA2EB71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1363BB
Deuteranopia (green-blind)
#5775B4
Tritanopia (blue-blind)
#C04371
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2eb7;
/* rgb */ color: rgb(186, 46, 183);
/* oklch */ color: oklch(57.1% 0.227 329.0);
Tailwind
colors: {
  custom: {
    50: '#d376cd',
    500: '#ba2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2eb7;
$custom-light: #d376cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2eb7",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 301.286,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.57081,
    "c": 0.22687,
    "h": 329
  },
  "luminance": 0.15812
}

Semantic roles & 50–950 ramp

primary
#BA2EB7
secondary
#7BC97C
accent
#E34844
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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