#BA2EA7#BA2EA7

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

Color values

HEX#BA2EA7
RGBrgb(186, 46, 167)
HSLhsl(308, 60%, 45%)
HSVhsv(308, 75%, 73%)
CMYKcmyk(0%, 75.3%, 10.2%, 27.1%)
CIE-LABlab(45.89, 66.73, -34.11)
CIE-LCHlch(45.89, 74.95, 332.93°)
OKLaboklab(56.21% 0.194 -0.0934)
OKLCHoklch(56.21% 0.215 334.3)
XYZxyz(28.2020, 15.1856, 37.9975)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EA7 #2EBA41
analogous
#872EBA #BA2EA7 #BA2E61
triadic
#BA2EA7 #A7BA2E #2EA7BA
tetradic
#BA2EA7 #BA872E #2EBA41 #2E61BA
square
#BA2EA7 #BA872E #2EBA41 #2E61BA
split-complementary
#BA2EA7 #61BA2E #2EBA87
monochromatic
#58164F #89227B #BA2EA7 #D451C2 #E082D3

Accessibility & contrast

On white

5.20
#BA2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BA2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EA7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EA7#FFFFFF#000000##FFFFFF
##BA2EA71.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba2ea7;
/* rgb */ color: rgb(186, 46, 167);
/* oklch */ color: oklch(56.2% 0.215 334.3);
Tailwind
colors: {
  custom: {
    50: '#d376c1',
    500: '#ba2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ea7;
$custom-light: #d376c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ea7",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 308.143,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56205,
    "c": 0.21534,
    "h": 334.3
  },
  "luminance": 0.15183
}

Semantic roles & 50–950 ramp

primary
#BA2EA7
secondary
#7BC985
accent
#E35A44
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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