#BA47C8#BA47C8

#BA47C8 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.3% C 0.212 H 323.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BA47C8
RGBrgb(186, 71, 200)
HSLhsl(293, 54%, 53%)
HSVhsv(293, 65%, 78%)
CMYKcmyk(7%, 64.5%, 0%, 21.6%)
CIE-LABlab(50.82, 63.13, -45.59)
CIE-LCHlch(50.82, 77.87, 324.17°)
OKLaboklab(60.32% 0.1696 -0.1268)
OKLCHoklch(60.32% 0.212 323.2)
XYZxyz(32.9273, 19.1175, 56.5881)
Luminance0.1912 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47C8 #55C847
analogous
#7947C8 #BA47C8 #C84796
triadic
#BA47C8 #C8BA47 #47C8BA
tetradic
#BA47C8 #C87947 #55C847 #4796C8
square
#BA47C8 #C87947 #55C847 #4796C8
split-complementary
#BA47C8 #96C847 #47C879
monochromatic
#6A2272 #9530A2 #BA47C8 #CC76D6 #DDA5E4

Accessibility & contrast

On white

4.35
#BA47C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#BA47C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47C8
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47C8#FFFFFF#000000##000000
##BA47C81.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A70CC
Deuteranopia (green-blind)
#5A7EC5
Tritanopia (blue-blind)
#BD5B82
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba47c8;
/* rgb */ color: rgb(186, 71, 200);
/* oklch */ color: oklch(60.3% 0.212 323.2);
Tailwind
colors: {
  custom: {
    50: '#d282d9',
    500: '#ba47c8',
    950: '#000000',
  },
}
SCSS
$custom: #ba47c8;
$custom-light: #d282d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47c8",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 200
  },
  "hsl": {
    "h": 293.488,
    "s": 53.975,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60322,
    "c": 0.21174,
    "h": 323.2
  },
  "luminance": 0.19116
}

Semantic roles & 50–950 ramp

primary
#BA47C8
secondary
#A0D19A
accent
#DD4A5A
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA47C8

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

Preview Lab → · Contrast checker → · Palette generator →

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