#BA47D5#BA47D5

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

Color values

HEX#BA47D5
RGBrgb(186, 71, 213)
HSLhsl(289, 63%, 56%)
HSVhsv(289, 67%, 84%)
CMYKcmyk(12.7%, 66.7%, 0%, 16.5%)
CIE-LABlab(51.55, 65.52, -51.87)
CIE-LCHlch(51.55, 83.57, 321.63°)
OKLaboklab(61.08% 0.1695 -0.1451)
OKLCHoklch(61.08% 0.223 319.4)
XYZxyz(34.5116, 19.7513, 64.9324)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47D5 #62D547
analogous
#7347D5 #BA47D5 #D547A9
triadic
#BA47D5 #D5BA47 #47D5BA
tetradic
#BA47D5 #D57347 #62D547 #47A9D5
square
#BA47D5 #D57347 #62D547 #47A9D5
split-complementary
#BA47D5 #A9D547 #47D573
monochromatic
#701E84 #9B29B5 #BA47D5 #CD79E0 #DFABEC

Accessibility & contrast

On white

4.24
#BA47D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#BA47D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47D5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47D5#FFFFFF#000000##000000
##BA47D51.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F73D9
Deuteranopia (green-blind)
#517FD2
Tritanopia (blue-blind)
#BA6188
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba47d5;
/* rgb */ color: rgb(186, 71, 213);
/* oklch */ color: oklch(61.1% 0.223 319.4);
Tailwind
colors: {
  custom: {
    50: '#d283e2',
    500: '#ba47d5',
    950: '#000000',
  },
}
SCSS
$custom: #ba47d5;
$custom-light: #d283e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47d5",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 213
  },
  "hsl": {
    "h": 288.592,
    "s": 62.832,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61084,
    "c": 0.22313,
    "h": 319.4
  },
  "luminance": 0.1975
}

Semantic roles & 50–950 ramp

primary
#BA47D5
secondary
#AAD99E
accent
#E64261
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA47D5

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

Preview Lab → · Contrast checker → · Palette generator →

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