#BA4EC4#BA4EC4

#BA4EC4 is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.9% C 0.199 H 324.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA4EC4
RGBrgb(186, 78, 196)
HSLhsl(295, 50%, 54%)
HSVhsv(295, 60%, 77%)
CMYKcmyk(5.1%, 60.2%, 0%, 23.1%)
CIE-LABlab(51.70, 59.41, -41.90)
CIE-LCHlch(51.70, 72.70, 324.80°)
OKLaboklab(60.89% 0.1612 -0.1162)
OKLCHoklch(60.89% 0.199 324.2)
XYZxyz(32.9370, 19.8752, 54.3153)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EC4 #58C44E
analogous
#7F4EC4 #BA4EC4 #C44E93
triadic
#BA4EC4 #C4BA4E #4EC4BA
tetradic
#BA4EC4 #C47F4E #58C44E #4E93C4
square
#BA4EC4 #C47F4E #58C44E #4E93C4
split-complementary
#BA4EC4 #93C44E #4EC47F
monochromatic
#6B2672 #9735A0 #BA4EC4 #CC7CD3 #DEAAE3

Accessibility & contrast

On white

4.22
#BA4EC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA4EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EC4
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EC4#FFFFFF#000000##000000
##BA4EC41.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A73C8
Deuteranopia (green-blind)
#6180C1
Tritanopia (blue-blind)
#BE5F82
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4ec4;
/* rgb */ color: rgb(186, 78, 196);
/* oklch */ color: oklch(60.9% 0.199 324.2);
Tailwind
colors: {
  custom: {
    50: '#d286d6',
    500: '#ba4ec4',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ec4;
$custom-light: #d286d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ec4",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 294.915,
    "s": 50,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60885,
    "c": 0.19868,
    "h": 324.2
  },
  "luminance": 0.19873
}

Semantic roles & 50–950 ramp

primary
#BA4EC4
secondary
#A2D09E
accent
#DA4E5A
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA4EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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