#BA4EAA#BA4EAA

#BA4EAA is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.6% C 0.177 H 333.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#BA4EAA
RGBrgb(186, 78, 170)
HSLhsl(309, 44%, 52%)
HSVhsv(309, 58%, 73%)
CMYKcmyk(0%, 58.1%, 8.6%, 27.1%)
CIE-LABlab(50.44, 54.91, -28.75)
CIE-LCHlch(50.44, 61.98, 332.36°)
OKLaboklab(59.56% 0.1583 -0.0783)
OKLCHoklch(59.56% 0.177 333.7)
XYZxyz(30.2299, 18.7924, 40.0575)
Luminance0.1879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EAA #4EBA5E
analogous
#944EBA #BA4EAA #BA4E74
triadic
#BA4EAA #AABA4E #4EAABA
tetradic
#BA4EAA #BA944E #4EBA5E #4E74BA
square
#BA4EAA #BA944E #4EBA5E #4E74BA
split-complementary
#BA4EAA #74BA4E #4EBA94
monochromatic
#66285D #923985 #BA4EAA #CB7ABF #DCA6D4

Accessibility & contrast

On white

4.41
#BA4EAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#BA4EAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EAA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EAA#FFFFFF#000000##000000
##BA4EAA1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6EAD
Deuteranopia (green-blind)
#6D7EA7
Tritanopia (blue-blind)
#C25575
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4eaa;
/* rgb */ color: rgb(186, 78, 170);
/* oklch */ color: oklch(59.6% 0.177 333.7);
Tailwind
colors: {
  custom: {
    50: '#d185c3',
    500: '#ba4eaa',
    950: '#000000',
  },
}
SCSS
$custom: #ba4eaa;
$custom-light: #d185c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4eaa",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 308.889,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59562,
    "c": 0.17664,
    "h": 333.7
  },
  "luminance": 0.1879
}

Semantic roles & 50–950 ramp

primary
#BA4EAA
secondary
#9ACAA1
accent
#D46754
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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