#BA4ACC#BA4ACC

#BA4ACC is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 60.9% C 0.211 H 321.9°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BA4ACC
RGBrgb(186, 74, 204)
HSLhsl(292, 56%, 55%)
HSVhsv(292, 64%, 80%)
CMYKcmyk(8.8%, 63.7%, 0%, 20%)
CIE-LABlab(51.49, 62.60, -46.82)
CIE-LCHlch(51.49, 78.17, 323.21°)
OKLaboklab(60.88% 0.1662 -0.1304)
OKLCHoklch(60.88% 0.211 321.9)
XYZxyz(33.5964, 19.6980, 59.1475)
Luminance0.1970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4ACC #5CCC4A
analogous
#794ACC #BA4ACC #CC4A9D
triadic
#BA4ACC #CCBA4A #4ACCBA
tetradic
#BA4ACC #CC794A #5CCC4A #4A9DCC
square
#BA4ACC #CC794A #5CCC4A #4A9DCC
split-complementary
#BA4ACC #9DCC4A #4ACC79
monochromatic
#6D2279 #9830A9 #BA4ACC #CC7AD9 #DEA9E7

Accessibility & contrast

On white

4.25
#BA4ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#BA4ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4ACC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4ACC#FFFFFF#000000##000000
##BA4ACC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A73D0
Deuteranopia (green-blind)
#5A7FC9
Tritanopia (blue-blind)
#BC5F85
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4acc;
/* rgb */ color: rgb(186, 74, 204);
/* oklch */ color: oklch(60.9% 0.211 321.9);
Tailwind
colors: {
  custom: {
    50: '#d284dc',
    500: '#ba4acc',
    950: '#000000',
  },
}
SCSS
$custom: #ba4acc;
$custom-light: #d284dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4acc",
  "rgb": {
    "r": 186,
    "g": 74,
    "b": 204
  },
  "hsl": {
    "h": 291.692,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60876,
    "c": 0.21128,
    "h": 321.9
  },
  "luminance": 0.19696
}

Semantic roles & 50–950 ramp

primary
#BA4ACC
secondary
#A5D49D
accent
#DF485D
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA4ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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