#BA47CE#BA47CE

#BA47CE is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.7% C 0.217 H 321.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA47CE
RGBrgb(186, 71, 206)
HSLhsl(291, 58%, 54%)
HSVhsv(291, 66%, 81%)
CMYKcmyk(9.7%, 65.5%, 0%, 19.2%)
CIE-LABlab(51.16, 64.22, -48.50)
CIE-LCHlch(51.16, 80.48, 322.94°)
OKLaboklab(60.67% 0.1696 -0.1353)
OKLCHoklch(60.67% 0.217 321.4)
XYZxyz(33.6423, 19.4035, 60.3538)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47CE #5BCE47
analogous
#7747CE #BA47CE #CE479F
triadic
#BA47CE #CEBA47 #47CEBA
tetradic
#BA47CE #CE7747 #5BCE47 #479FCE
square
#BA47CE #CE7747 #5BCE47 #479FCE
split-complementary
#BA47CE #9FCE47 #47CE77
monochromatic
#6D217A #982DAA #BA47CE #CC77DB #DEA8E8

Accessibility & contrast

On white

4.30
#BA47CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#BA47CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47CE
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47CE#FFFFFF#000000##000000
##BA47CE1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2072D2
Deuteranopia (green-blind)
#567ECB
Tritanopia (blue-blind)
#BC5E85
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba47ce;
/* rgb */ color: rgb(186, 71, 206);
/* oklch */ color: oklch(60.7% 0.217 321.4);
Tailwind
colors: {
  custom: {
    50: '#d283dd',
    500: '#ba47ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba47ce;
$custom-light: #d283dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47ce",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 206
  },
  "hsl": {
    "h": 291.111,
    "s": 57.94,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60668,
    "c": 0.21696,
    "h": 321.4
  },
  "luminance": 0.19402
}

Semantic roles & 50–950 ramp

primary
#BA47CE
secondary
#A4D59C
accent
#E1475E
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA47CE

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

Preview Lab → · Contrast checker → · Palette generator →

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