#BA4ABB#BA4ABB

#BA4ABB is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.9% C 0.197 H 327.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA4ABB
RGBrgb(186, 74, 187)
HSLhsl(299, 45%, 51%)
HSVhsv(299, 60%, 73%)
CMYKcmyk(0.5%, 60.4%, 0%, 26.7%)
CIE-LABlab(50.60, 59.55, -38.42)
CIE-LCHlch(50.60, 70.87, 327.17°)
OKLaboklab(59.94% 0.1654 -0.1061)
OKLCHoklch(59.94% 0.197 327.3)
XYZxyz(31.6676, 18.9265, 48.9893)
Luminance0.1893 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4ABB #4BBB4A
analogous
#814ABB #BA4ABB #BB4A83
triadic
#BA4ABB #BBBA4A #4ABBBA
tetradic
#BA4ABB #BB814A #4BBB4A #4A83BB
square
#BA4ABB #BB814A #4BBB4A #4A83BB
split-complementary
#BA4ABB #83BB4A #4ABB81
monochromatic
#642665 #903791 #BA4ABB #CB76CC #DCA3DC

Accessibility & contrast

On white

4.39
#BA4ABB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#BA4ABB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4ABB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4ABB#FFFFFF#000000##000000
##BA4ABB1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6FBE
Deuteranopia (green-blind)
#637EB8
Tritanopia (blue-blind)
#BF587C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4abb;
/* rgb */ color: rgb(186, 74, 187);
/* oklch */ color: oklch(59.9% 0.197 327.3);
Tailwind
colors: {
  custom: {
    50: '#d284d0',
    500: '#ba4abb',
    950: '#000000',
  },
}
SCSS
$custom: #ba4abb;
$custom-light: #d284d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4abb",
  "rgb": {
    "r": 186,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 299.469,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5994,
    "c": 0.19651,
    "h": 327.3
  },
  "luminance": 0.18925
}

Semantic roles & 50–950 ramp

primary
#BA4ABB
secondary
#98C997
accent
#D55354
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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