#BA47C7#BA47C7

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

Color values

HEX#BA47C7
RGBrgb(186, 71, 199)
HSLhsl(294, 53%, 53%)
HSVhsv(294, 64%, 78%)
CMYKcmyk(6.5%, 64.3%, 0%, 22%)
CIE-LABlab(50.77, 62.95, -45.10)
CIE-LCHlch(50.77, 77.43, 324.38°)
OKLaboklab(60.27% 0.1695 -0.1254)
OKLCHoklch(60.27% 0.211 323.5)
XYZxyz(32.8108, 19.0710, 55.9746)
Luminance0.1907 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47C7 #54C747
analogous
#7A47C7 #BA47C7 #C74794
triadic
#BA47C7 #C7BA47 #47C7BA
tetradic
#BA47C7 #C77A47 #54C747 #4794C7
square
#BA47C7 #C77A47 #54C747 #4794C7
split-complementary
#BA47C7 #94C747 #47C77A
monochromatic
#692271 #9531A0 #BA47C7 #CC76D5 #DDA5E4

Accessibility & contrast

On white

4.36
#BA47C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#BA47C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47C7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47C7#FFFFFF#000000##000000
##BA47C71.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B70CB
Deuteranopia (green-blind)
#5B7EC4
Tritanopia (blue-blind)
#BD5B81
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba47c7;
/* rgb */ color: rgb(186, 71, 199);
/* oklch */ color: oklch(60.3% 0.211 323.5);
Tailwind
colors: {
  custom: {
    50: '#d282d8',
    500: '#ba47c7',
    950: '#000000',
  },
}
SCSS
$custom: #ba47c7;
$custom-light: #d282d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47c7",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 199
  },
  "hsl": {
    "h": 293.906,
    "s": 53.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60265,
    "c": 0.21087,
    "h": 323.5
  },
  "luminance": 0.19069
}

Semantic roles & 50–950 ramp

primary
#BA47C7
secondary
#9FD199
accent
#DD4B5A
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #BA47C7

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

Preview Lab → · Contrast checker → · Palette generator →

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