#BA47D3#BA47D3

#BA47D3 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.0% C 0.221 H 320.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BA47D3
RGBrgb(186, 71, 211)
HSLhsl(289, 61%, 55%)
HSVhsv(289, 66%, 83%)
CMYKcmyk(11.8%, 66.4%, 0%, 17.3%)
CIE-LABlab(51.44, 65.15, -50.91)
CIE-LCHlch(51.44, 82.68, 321.99°)
OKLaboklab(60.96% 0.1695 -0.1423)
OKLCHoklch(60.96% 0.221 320)
XYZxyz(34.2594, 19.6504, 63.6037)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47D3 #60D347
analogous
#7447D3 #BA47D3 #D347A6
triadic
#BA47D3 #D3BA47 #47D3BA
tetradic
#BA47D3 #D37447 #60D347 #47A6D3
square
#BA47D3 #D37447 #60D347 #47A6D3
split-complementary
#BA47D3 #A6D347 #47D374
monochromatic
#6F1F81 #9A2BB2 #BA47D3 #CD78DF #DFAAEB

Accessibility & contrast

On white

4.26
#BA47D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#BA47D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47D3
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47D3#FFFFFF#000000##000000
##BA47D31.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1573D7
Deuteranopia (green-blind)
#537FD0
Tritanopia (blue-blind)
#BB6087
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba47d3;
/* rgb */ color: rgb(186, 71, 211);
/* oklch */ color: oklch(61.0% 0.221 320.0);
Tailwind
colors: {
  custom: {
    50: '#d283e1',
    500: '#ba47d3',
    950: '#000000',
  },
}
SCSS
$custom: #ba47d3;
$custom-light: #d283e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47d3",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 211
  },
  "hsl": {
    "h": 289.286,
    "s": 61.404,
    "l": 55.294
  },
  "oklch": {
    "l": 0.60964,
    "c": 0.22136,
    "h": 320
  },
  "luminance": 0.19649
}

Semantic roles & 50–950 ramp

primary
#BA47D3
secondary
#A8D89E
accent
#E54360
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA47D3

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

Preview Lab → · Contrast checker → · Palette generator →

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