#BA47BA#BA47BA

#BA47BA is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.6% C 0.200 H 327.7°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BA47BA
RGBrgb(186, 71, 186)
HSLhsl(300, 45%, 50%)
HSVhsv(300, 62%, 73%)
CMYKcmyk(0%, 61.8%, 0%, 27.1%)
CIE-LABlab(50.09, 60.66, -38.65)
CIE-LCHlch(50.09, 71.92, 327.49°)
OKLaboklab(59.55% 0.169 -0.1067)
OKLCHoklch(59.55% 0.2 327.7)
XYZxyz(31.3654, 18.4928, 48.3623)
Luminance0.1849 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47BA #47BA47
analogous
#8047BA #BA47BA #BA4780
triadic
#BA47BA #BABA47 #47BABA
tetradic
#BA47BA #BA8047 #47BA47 #4780BA
square
#BA47BA #BA8047 #47BA47 #4780BA
split-complementary
#BA47BA #80BA47 #47BA80
monochromatic
#622562 #8E358E #BA47BA #CB74CB #DBA0DB

Accessibility & contrast

On white

4.47
#BA47BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#BA47BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47BA
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47BA#FFFFFF#000000##000000
##BA47BA1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#396EBD
Deuteranopia (green-blind)
#627CB7
Tritanopia (blue-blind)
#BF567A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba47ba;
/* rgb */ color: rgb(186, 71, 186);
/* oklch */ color: oklch(59.6% 0.200 327.7);
Tailwind
colors: {
  custom: {
    50: '#d282cf',
    500: '#ba47ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba47ba;
$custom-light: #d282cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47ba",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59551,
    "c": 0.19983,
    "h": 327.7
  },
  "luminance": 0.18491
}

Semantic roles & 50–950 ramp

primary
#BA47BA
secondary
#95C895
accent
#D55353
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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