#BA2EA6#BA2EA6

#BA2EA6 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.215 H 334.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA2EA6
RGBrgb(186, 46, 166)
HSLhsl(309, 60%, 45%)
HSVhsv(309, 75%, 73%)
CMYKcmyk(0%, 75.3%, 10.8%, 27.1%)
CIE-LABlab(45.84, 66.59, -33.59)
CIE-LCHlch(45.84, 74.58, 333.23°)
OKLaboklab(56.15% 0.194 -0.0919)
OKLCHoklch(56.15% 0.215 334.6)
XYZxyz(28.1100, 15.1488, 37.5125)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EA6 #2EBA42
analogous
#882EBA #BA2EA6 #BA2E60
triadic
#BA2EA6 #A6BA2E #2EA6BA
tetradic
#BA2EA6 #BA882E #2EBA42 #2E60BA
square
#BA2EA6 #BA882E #2EBA42 #2E60BA
split-complementary
#BA2EA6 #60BA2E #2EBA88
monochromatic
#58164E #89227A #BA2EA6 #D451C1 #E082D3

Accessibility & contrast

On white

5.21
#BA2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA2EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EA6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EA6#FFFFFF#000000##FFFFFF
##BA2EA61.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5FA9
Deuteranopia (green-blind)
#6074A3
Tritanopia (blue-blind)
#C33B68
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2ea6;
/* rgb */ color: rgb(186, 46, 166);
/* oklch */ color: oklch(56.2% 0.215 334.6);
Tailwind
colors: {
  custom: {
    50: '#d376c1',
    500: '#ba2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ea6;
$custom-light: #d376c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ea6",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 308.571,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56153,
    "c": 0.21464,
    "h": 334.6
  },
  "luminance": 0.15146
}

Semantic roles & 50–950 ramp

primary
#BA2EA6
secondary
#7BC986
accent
#E35B44
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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