#BA47BC#BA47BC

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

Color values

HEX#BA47BC
RGBrgb(186, 71, 188)
HSLhsl(299, 47%, 51%)
HSVhsv(299, 62%, 74%)
CMYKcmyk(1.1%, 62.2%, 0%, 26.3%)
CIE-LABlab(50.19, 61.00, -39.65)
CIE-LCHlch(50.19, 72.76, 326.98°)
OKLaboklab(59.66% 0.1691 -0.1096)
OKLCHoklch(59.66% 0.202 327)
XYZxyz(31.5795, 18.5784, 49.4899)
Luminance0.1858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47BC #49BC47
analogous
#7F47BC #BA47BC #BC4783
triadic
#BA47BC #BCBA47 #47BCBA
tetradic
#BA47BC #BC7F47 #49BC47 #4783BC
square
#BA47BC #BC7F47 #49BC47 #4783BC
split-complementary
#BA47BC #83BC47 #47BC7F
monochromatic
#632464 #8F3591 #BA47BC #CB74CC #DCA1DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA47BC#FFFFFF#000000##000000
##BA47BC1.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)
#376EC0
Deuteranopia (green-blind)
#617DB9
Tritanopia (blue-blind)
#BF577B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba47bc;
/* rgb */ color: rgb(186, 71, 188);
/* oklch */ color: oklch(59.7% 0.202 327.0);
Tailwind
colors: {
  custom: {
    50: '#d282d0',
    500: '#ba47bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba47bc;
$custom-light: #d282d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47bc",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 298.974,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59658,
    "c": 0.2015,
    "h": 327
  },
  "luminance": 0.18576
}

Semantic roles & 50–950 ramp

primary
#BA47BC
secondary
#96C995
accent
#D65254
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA47BC

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

Preview Lab → · Contrast checker → · Palette generator →

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