#BA47A7#BA47A7

#BA47A7 is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.6% C 0.185 H 334.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#BA47A7
RGBrgb(186, 71, 167)
HSLhsl(310, 45%, 50%)
HSVhsv(310, 62%, 73%)
CMYKcmyk(0%, 61.8%, 10.2%, 27.1%)
CIE-LABlab(49.18, 57.51, -28.96)
CIE-LCHlch(49.18, 64.39, 333.27°)
OKLaboklab(58.59% 0.1669 -0.0789)
OKLCHoklch(58.59% 0.185 334.7)
XYZxyz(29.4782, 17.7379, 38.4229)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47A7 #47BA5A
analogous
#9347BA #BA47A7 #BA476D
triadic
#BA47A7 #A7BA47 #47A7BA
tetradic
#BA47A7 #BA9347 #47BA5A #476DBA
square
#BA47A7 #BA9347 #47BA5A #476DBA
split-complementary
#BA47A7 #6DBA47 #47BA93
monochromatic
#622558 #8E3580 #BA47A7 #CB74BC #DBA0D2

Accessibility & contrast

On white

4.62
#BA47A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#BA47A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA47A7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47A7#FFFFFF#000000##FFFFFF
##BA47A71.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466AAA
Deuteranopia (green-blind)
#6B7BA4
Tritanopia (blue-blind)
#C24F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba47a7;
/* rgb */ color: rgb(186, 71, 167);
/* oklch */ color: oklch(58.6% 0.185 334.7);
Tailwind
colors: {
  custom: {
    50: '#d281c1',
    500: '#ba47a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba47a7;
$custom-light: #d281c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47a7",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 167
  },
  "hsl": {
    "h": 309.913,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5859,
    "c": 0.18459,
    "h": 334.7
  },
  "luminance": 0.17736
}

Semantic roles & 50–950 ramp

primary
#BA47A7
secondary
#95C89D
accent
#D56853
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA47A7

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

Preview Lab → · Contrast checker → · Palette generator →

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