#BA47BD#BA47BD

#BA47BD is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.7% C 0.202 H 326.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BA47BD
RGBrgb(186, 71, 189)
HSLhsl(298, 47%, 51%)
HSVhsv(298, 62%, 74%)
CMYKcmyk(1.6%, 62.4%, 0%, 25.9%)
CIE-LABlab(50.24, 61.18, -40.15)
CIE-LCHlch(50.24, 73.18, 326.72°)
OKLaboklab(59.71% 0.1692 -0.111)
OKLCHoklch(59.71% 0.202 326.7)
XYZxyz(31.6877, 18.6217, 50.0596)
Luminance0.1862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47BD #4ABD47
analogous
#7F47BD #BA47BD #BD4785
triadic
#BA47BD #BDBA47 #47BDBA
tetradic
#BA47BD #BD7F47 #4ABD47 #4785BD
square
#BA47BD #BD7F47 #4ABD47 #4785BD
split-complementary
#BA47BD #85BD47 #47BD7F
monochromatic
#642465 #903492 #BA47BD #CB74CD #DCA1DD

Accessibility & contrast

On white

4.45
#BA47BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#BA47BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47BD
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47BD#FFFFFF#000000##000000
##BA47BD1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#366EC1
Deuteranopia (green-blind)
#617DBA
Tritanopia (blue-blind)
#BF577C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba47bd;
/* rgb */ color: rgb(186, 71, 189);
/* oklch */ color: oklch(59.7% 0.202 326.7);
Tailwind
colors: {
  custom: {
    50: '#d282d1',
    500: '#ba47bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba47bd;
$custom-light: #d282d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47bd",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 189
  },
  "hsl": {
    "h": 298.475,
    "s": 47.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59712,
    "c": 0.20234,
    "h": 326.7
  },
  "luminance": 0.1862
}

Semantic roles & 50–950 ramp

primary
#BA47BD
secondary
#97CA96
accent
#D75154
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA47BD

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

Preview Lab → · Contrast checker → · Palette generator →

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