#BA4EA9#BA4EA9

#BA4EA9 is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.5% C 0.176 H 334.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA4EA9
RGBrgb(186, 78, 169)
HSLhsl(309, 44%, 52%)
HSVhsv(309, 58%, 73%)
CMYKcmyk(0%, 58.1%, 9.1%, 27.1%)
CIE-LABlab(50.40, 54.74, -28.23)
CIE-LCHlch(50.40, 61.59, 332.72°)
OKLaboklab(59.51% 0.1582 -0.0768)
OKLCHoklch(59.51% 0.176 334.1)
XYZxyz(30.1356, 18.7547, 39.5612)
Luminance0.1875 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EA9 #4EBA5F
analogous
#954EBA #BA4EA9 #BA4E73
triadic
#BA4EA9 #A9BA4E #4EA9BA
tetradic
#BA4EA9 #BA954E #4EBA5F #4E73BA
square
#BA4EA9 #BA954E #4EBA5F #4E73BA
split-complementary
#BA4EA9 #73BA4E #4EBA95
monochromatic
#66285C #923984 #BA4EA9 #CB7ABE #DCA6D4

Accessibility & contrast

On white

4.42
#BA4EA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#BA4EA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EA9
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EA9#FFFFFF#000000##000000
##BA4EA91.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6EAC
Deuteranopia (green-blind)
#6E7EA6
Tritanopia (blue-blind)
#C25574
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4ea9;
/* rgb */ color: rgb(186, 78, 169);
/* oklch */ color: oklch(59.5% 0.176 334.1);
Tailwind
colors: {
  custom: {
    50: '#d185c3',
    500: '#ba4ea9',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ea9;
$custom-light: #d185c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ea9",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 169
  },
  "hsl": {
    "h": 309.444,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59515,
    "c": 0.17585,
    "h": 334.1
  },
  "luminance": 0.18752
}

Semantic roles & 50–950 ramp

primary
#BA4EA9
secondary
#9ACAA2
accent
#D46854
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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