#BA47AF#BA47AF

#BA47AF is a mid, vivid purple. Relative luminance 0.180; OKLCH L 59.0% C 0.191 H 331.6°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA47AF
RGBrgb(186, 71, 175)
HSLhsl(306, 45%, 50%)
HSVhsv(306, 62%, 73%)
CMYKcmyk(0%, 61.8%, 5.9%, 27.1%)
CIE-LABlab(49.55, 58.81, -33.08)
CIE-LCHlch(49.55, 67.47, 330.64°)
OKLaboklab(58.98% 0.1679 -0.0906)
OKLCHoklch(58.98% 0.191 331.6)
XYZxyz(30.2407, 18.0429, 42.4390)
Luminance0.1804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47AF #47BA52
analogous
#8B47BA #BA47AF #BA4775
triadic
#BA47AF #AFBA47 #47AFBA
tetradic
#BA47AF #BA8B47 #47BA52 #4775BA
square
#BA47AF #BA8B47 #47BA52 #4775BA
split-complementary
#BA47AF #75BA47 #47BA8B
monochromatic
#62255C #8E3586 #BA47AF #CB74C2 #DBA0D6

Accessibility & contrast

On white

4.56
#BA47AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#BA47AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47AF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47AF#FFFFFF#000000##000000
##BA47AF1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#416BB2
Deuteranopia (green-blind)
#677CAC
Tritanopia (blue-blind)
#C15274
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba47af;
/* rgb */ color: rgb(186, 71, 175);
/* oklch */ color: oklch(59.0% 0.191 331.6);
Tailwind
colors: {
  custom: {
    50: '#d282c7',
    500: '#ba47af',
    950: '#000000',
  },
}
SCSS
$custom: #ba47af;
$custom-light: #d282c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47af",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 175
  },
  "hsl": {
    "h": 305.739,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58982,
    "c": 0.19085,
    "h": 331.6
  },
  "luminance": 0.18041
}

Semantic roles & 50–950 ramp

primary
#BA47AF
secondary
#95C89A
accent
#D55F53
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA47AF

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

Preview Lab → · Contrast checker → · Palette generator →

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