#BA47AB#BA47AB

#BA47AB is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.8% C 0.188 H 333.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA47AB
RGBrgb(186, 71, 171)
HSLhsl(308, 45%, 50%)
HSVhsv(308, 62%, 73%)
CMYKcmyk(0%, 61.8%, 8.1%, 27.1%)
CIE-LABlab(49.36, 58.15, -31.03)
CIE-LCHlch(49.36, 65.91, 331.92°)
OKLaboklab(58.78% 0.1675 -0.0848)
OKLCHoklch(58.78% 0.188 333.2)
XYZxyz(29.8537, 17.8881, 40.4006)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47AB #47BA56
analogous
#8F47BA #BA47AB #BA4771
triadic
#BA47AB #ABBA47 #47ABBA
tetradic
#BA47AB #BA8F47 #47BA56 #4771BA
square
#BA47AB #BA8F47 #47BA56 #4771BA
split-complementary
#BA47AB #71BA47 #47BA8F
monochromatic
#62255A #8E3583 #BA47AB #CB74BF #DBA0D4

Accessibility & contrast

On white

4.59
#BA47AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#BA47AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA47AB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47AB#FFFFFF#000000##FFFFFF
##BA47AB1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446BAE
Deuteranopia (green-blind)
#697BA8
Tritanopia (blue-blind)
#C25072
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba47ab;
/* rgb */ color: rgb(186, 71, 171);
/* oklch */ color: oklch(58.8% 0.188 333.2);
Tailwind
colors: {
  custom: {
    50: '#d282c4',
    500: '#ba47ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba47ab;
$custom-light: #d282c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47ab",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 171
  },
  "hsl": {
    "h": 307.826,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58784,
    "c": 0.18769,
    "h": 333.2
  },
  "luminance": 0.17886
}

Semantic roles & 50–950 ramp

primary
#BA47AB
secondary
#95C89B
accent
#D56453
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA47AB

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

Preview Lab → · Contrast checker → · Palette generator →

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