#BA47D6#BA47D6

#BA47D6 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.1% C 0.224 H 319.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA47D6
RGBrgb(186, 71, 214)
HSLhsl(288, 64%, 56%)
HSVhsv(288, 67%, 84%)
CMYKcmyk(13.1%, 66.8%, 0%, 16.1%)
CIE-LABlab(51.61, 65.71, -52.35)
CIE-LCHlch(51.61, 84.01, 321.46°)
OKLaboklab(61.14% 0.1694 -0.1466)
OKLCHoklch(61.14% 0.224 319.1)
XYZxyz(34.6390, 19.8022, 65.6029)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47D6 #63D647
analogous
#7247D6 #BA47D6 #D647AA
triadic
#BA47D6 #D6BA47 #47D6BA
tetradic
#BA47D6 #D67247 #63D647 #47AAD6
square
#BA47D6 #D67247 #63D647 #47AAD6
split-complementary
#BA47D6 #AAD647 #47D672
monochromatic
#711E85 #9B29B7 #BA47D6 #CD79E1 #E0ABEC

Accessibility & contrast

On white

4.23
#BA47D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#BA47D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47D6
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47D6#FFFFFF#000000##000000
##BA47D61.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B73DA
Deuteranopia (green-blind)
#517FD3
Tritanopia (blue-blind)
#BA6189
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba47d6;
/* rgb */ color: rgb(186, 71, 214);
/* oklch */ color: oklch(61.1% 0.224 319.1);
Tailwind
colors: {
  custom: {
    50: '#d283e3',
    500: '#ba47d6',
    950: '#000000',
  },
}
SCSS
$custom: #ba47d6;
$custom-light: #d283e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47d6",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 214
  },
  "hsl": {
    "h": 288.252,
    "s": 63.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61144,
    "c": 0.22402,
    "h": 319.1
  },
  "luminance": 0.19801
}

Semantic roles & 50–950 ramp

primary
#BA47D6
secondary
#AADA9F
accent
#E74162
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150B15
muted
#837C84

Preview Lab

Preview with #BA47D6

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

Preview Lab → · Contrast checker → · Palette generator →

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