#BA2EA4#BA2EA4

#BA2EA4 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.0% C 0.213 H 335.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BA2EA4
RGBrgb(186, 46, 164)
HSLhsl(309, 60%, 45%)
HSVhsv(309, 75%, 73%)
CMYKcmyk(0%, 75.3%, 11.8%, 27.1%)
CIE-LABlab(45.74, 66.29, -32.56)
CIE-LCHlch(45.74, 73.86, 333.84°)
OKLaboklab(56.05% 0.1938 -0.0889)
OKLCHoklch(56.05% 0.213 335.3)
XYZxyz(27.9279, 15.0760, 36.5538)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EA4 #2EBA44
analogous
#8A2EBA #BA2EA4 #BA2E5E
triadic
#BA2EA4 #A4BA2E #2EA4BA
tetradic
#BA2EA4 #BA8A2E #2EBA44 #2E5EBA
square
#BA2EA4 #BA8A2E #2EBA44 #2E5EBA
split-complementary
#BA2EA4 #5EBA2E #2EBA8A
monochromatic
#58164D #892279 #BA2EA4 #D451BF #E082D1

Accessibility & contrast

On white

5.23
#BA2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BA2EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EA4
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EA4#FFFFFF#000000##FFFFFF
##BA2EA41.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5FA7
Deuteranopia (green-blind)
#6174A1
Tritanopia (blue-blind)
#C33A66
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ea4;
/* rgb */ color: rgb(186, 46, 164);
/* oklch */ color: oklch(56.0% 0.213 335.3);
Tailwind
colors: {
  custom: {
    50: '#d376bf',
    500: '#ba2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ea4;
$custom-light: #d376bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ea4",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 309.429,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56049,
    "c": 0.21326,
    "h": 335.3
  },
  "luminance": 0.15073
}

Semantic roles & 50–950 ramp

primary
#BA2EA4
secondary
#7BC987
accent
#E35D44
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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