#BA47AA#BA47AA

#BA47AA is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.7% C 0.187 H 333.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BA47AA
RGBrgb(186, 71, 170)
HSLhsl(308, 45%, 50%)
HSVhsv(308, 62%, 73%)
CMYKcmyk(0%, 61.8%, 8.6%, 27.1%)
CIE-LABlab(49.31, 57.99, -30.51)
CIE-LCHlch(49.31, 65.53, 332.25°)
OKLaboklab(58.74% 0.1673 -0.0833)
OKLCHoklch(58.74% 0.187 333.5)
XYZxyz(29.7587, 17.8501, 39.9005)
Luminance0.1785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47AA #47BA57
analogous
#9147BA #BA47AA #BA4770
triadic
#BA47AA #AABA47 #47AABA
tetradic
#BA47AA #BA9147 #47BA57 #4770BA
square
#BA47AA #BA9147 #47BA57 #4770BA
split-complementary
#BA47AA #70BA47 #47BA91
monochromatic
#622559 #8E3582 #BA47AA #CB74BF #DBA0D3

Accessibility & contrast

On white

4.60
#BA47AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#BA47AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA47AA
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47AA#FFFFFF#000000##FFFFFF
##BA47AA1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456BAD
Deuteranopia (green-blind)
#6A7BA7
Tritanopia (blue-blind)
#C25072
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba47aa;
/* rgb */ color: rgb(186, 71, 170);
/* oklch */ color: oklch(58.7% 0.187 333.5);
Tailwind
colors: {
  custom: {
    50: '#d281c3',
    500: '#ba47aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba47aa;
$custom-light: #d281c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47aa",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 170
  },
  "hsl": {
    "h": 308.348,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58735,
    "c": 0.18691,
    "h": 333.5
  },
  "luminance": 0.17848
}

Semantic roles & 50–950 ramp

primary
#BA47AA
secondary
#95C89C
accent
#D56553
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA47AA

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

Preview Lab → · Contrast checker → · Palette generator →

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