#BA2EA5#BA2EA5

#BA2EA5 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.214 H 335.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA2EA5
RGBrgb(186, 46, 165)
HSLhsl(309, 60%, 45%)
HSVhsv(309, 75%, 73%)
CMYKcmyk(0%, 75.3%, 11.3%, 27.1%)
CIE-LABlab(45.79, 66.44, -33.07)
CIE-LCHlch(45.79, 74.22, 333.54°)
OKLaboklab(56.1% 0.1939 -0.0904)
OKLCHoklch(56.1% 0.214 335)
XYZxyz(28.0186, 15.1122, 37.0313)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EA5 #2EBA43
analogous
#892EBA #BA2EA5 #BA2E5F
triadic
#BA2EA5 #A5BA2E #2EA5BA
tetradic
#BA2EA5 #BA892E #2EBA43 #2E5FBA
square
#BA2EA5 #BA892E #2EBA43 #2E5FBA
split-complementary
#BA2EA5 #5FBA2E #2EBA89
monochromatic
#58164E #892279 #BA2EA5 #D451C0 #E082D2

Accessibility & contrast

On white

5.22
#BA2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA2EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EA5
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EA5#FFFFFF#000000##FFFFFF
##BA2EA51.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5FA8
Deuteranopia (green-blind)
#6074A2
Tritanopia (blue-blind)
#C33A67
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ea5;
/* rgb */ color: rgb(186, 46, 165);
/* oklch */ color: oklch(56.1% 0.214 335.0);
Tailwind
colors: {
  custom: {
    50: '#d376c0',
    500: '#ba2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ea5;
$custom-light: #d376c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ea5",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 309,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56101,
    "c": 0.21395,
    "h": 335
  },
  "luminance": 0.1511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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