#BA47CD#BA47CD

#BA47CD is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.6% C 0.216 H 321.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA47CD
RGBrgb(186, 71, 205)
HSLhsl(291, 57%, 54%)
HSVhsv(291, 65%, 80%)
CMYKcmyk(9.3%, 65.4%, 0%, 19.6%)
CIE-LABlab(51.10, 64.04, -48.02)
CIE-LCHlch(51.10, 80.04, 323.13°)
OKLaboklab(60.61% 0.1696 -0.1339)
OKLCHoklch(60.61% 0.216 321.7)
XYZxyz(33.5212, 19.3551, 59.7160)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47CD #5ACD47
analogous
#7747CD #BA47CD #CD479D
triadic
#BA47CD #CDBA47 #47CDBA
tetradic
#BA47CD #CD7747 #5ACD47 #479DCD
square
#BA47CD #CD7747 #5ACD47 #479DCD
split-complementary
#BA47CD #9DCD47 #47CD77
monochromatic
#6C2179 #972EA9 #BA47CD #CC77DA #DEA7E7

Accessibility & contrast

On white

4.31
#BA47CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#BA47CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47CD
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47CD#FFFFFF#000000##000000
##BA47CD1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2271D1
Deuteranopia (green-blind)
#577ECA
Tritanopia (blue-blind)
#BC5D84
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba47cd;
/* rgb */ color: rgb(186, 71, 205);
/* oklch */ color: oklch(60.6% 0.216 321.7);
Tailwind
colors: {
  custom: {
    50: '#d282dd',
    500: '#ba47cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba47cd;
$custom-light: #d282dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47cd",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 205
  },
  "hsl": {
    "h": 291.493,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.6061,
    "c": 0.21609,
    "h": 321.7
  },
  "luminance": 0.19353
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA47CD

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

Preview Lab → · Contrast checker → · Palette generator →

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