#BA47CC#BA47CC

#BA47CC is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.6% C 0.215 H 322.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA47CC
RGBrgb(186, 71, 204)
HSLhsl(292, 57%, 54%)
HSVhsv(292, 65%, 80%)
CMYKcmyk(8.8%, 65.2%, 0%, 20%)
CIE-LABlab(51.04, 63.85, -47.53)
CIE-LCHlch(51.04, 79.60, 323.34°)
OKLaboklab(60.55% 0.1696 -0.1325)
OKLCHoklch(60.55% 0.215 322)
XYZxyz(33.4009, 19.3070, 59.0823)
Luminance0.1930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47CC #59CC47
analogous
#7847CC #BA47CC #CC479C
triadic
#BA47CC #CCBA47 #47CCBA
tetradic
#BA47CC #CC7847 #59CC47 #479CCC
square
#BA47CC #CC7847 #59CC47 #479CCC
split-complementary
#BA47CC #9CCC47 #47CC78
monochromatic
#6C2177 #972EA7 #BA47CC #CC77D9 #DEA7E7

Accessibility & contrast

On white

4.32
#BA47CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#BA47CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47CC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47CC#FFFFFF#000000##000000
##BA47CC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2471D0
Deuteranopia (green-blind)
#587EC9
Tritanopia (blue-blind)
#BC5D84
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba47cc;
/* rgb */ color: rgb(186, 71, 204);
/* oklch */ color: oklch(60.6% 0.215 322.0);
Tailwind
colors: {
  custom: {
    50: '#d282dc',
    500: '#ba47cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba47cc;
$custom-light: #d282dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47cc",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 291.88,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60552,
    "c": 0.21522,
    "h": 322
  },
  "luminance": 0.19305
}

Semantic roles & 50–950 ramp

primary
#BA47CC
secondary
#A3D49B
accent
#E0485C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA47CC

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

Preview Lab → · Contrast checker → · Palette generator →

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