#BA2EA3#BA2EA3

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

Color values

HEX#BA2EA3
RGBrgb(186, 46, 163)
HSLhsl(310, 60%, 45%)
HSVhsv(310, 75%, 73%)
CMYKcmyk(0%, 75.3%, 12.4%, 27.1%)
CIE-LABlab(45.69, 66.15, -32.04)
CIE-LCHlch(45.69, 73.50, 334.16°)
OKLaboklab(56% 0.1937 -0.0875)
OKLCHoklch(56% 0.213 335.7)
XYZxyz(27.8380, 15.0400, 36.0801)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EA3 #2EBA45
analogous
#8B2EBA #BA2EA3 #BA2E5D
triadic
#BA2EA3 #A3BA2E #2EA3BA
tetradic
#BA2EA3 #BA8B2E #2EBA45 #2E5DBA
square
#BA2EA3 #BA8B2E #2EBA45 #2E5DBA
split-complementary
#BA2EA3 #5DBA2E #2EBA8B
monochromatic
#58164D #892278 #BA2EA3 #D451BF #E082D1

Accessibility & contrast

On white

5.24
#BA2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2EA3
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EA3#FFFFFF#000000##FFFFFF
##BA2EA31.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5FA6
Deuteranopia (green-blind)
#6174A0
Tritanopia (blue-blind)
#C43966
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ea3;
/* rgb */ color: rgb(186, 46, 163);
/* oklch */ color: oklch(56.0% 0.213 335.7);
Tailwind
colors: {
  custom: {
    50: '#d376be',
    500: '#ba2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ea3;
$custom-light: #d376be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ea3",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 309.857,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55998,
    "c": 0.21257,
    "h": 335.7
  },
  "luminance": 0.15037
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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