#BA47D2#BA47D2

#BA47D2 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.9% C 0.220 H 320.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BA47D2
RGBrgb(186, 71, 210)
HSLhsl(290, 61%, 55%)
HSVhsv(290, 66%, 82%)
CMYKcmyk(11.4%, 66.2%, 0%, 17.6%)
CIE-LABlab(51.38, 64.96, -50.43)
CIE-LCHlch(51.38, 82.24, 322.18°)
OKLaboklab(60.9% 0.1695 -0.1409)
OKLCHoklch(60.9% 0.22 320.3)
XYZxyz(34.1344, 19.6004, 62.9455)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47D2 #5FD247
analogous
#7447D2 #BA47D2 #D247A5
triadic
#BA47D2 #D2BA47 #47D2BA
tetradic
#BA47D2 #D27447 #5FD247 #47A5D2
square
#BA47D2 #D27447 #5FD247 #47A5D2
split-complementary
#BA47D2 #A5D247 #47D274
monochromatic
#6F1F7F #9A2BB1 #BA47D2 #CC78DE #DFA9EA

Accessibility & contrast

On white

4.27
#BA47D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#BA47D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47D2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47D2#FFFFFF#000000##000000
##BA47D21.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1872D6
Deuteranopia (green-blind)
#547FCF
Tritanopia (blue-blind)
#BB5F87
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba47d2;
/* rgb */ color: rgb(186, 71, 210);
/* oklch */ color: oklch(60.9% 0.220 320.3);
Tailwind
colors: {
  custom: {
    50: '#d283e0',
    500: '#ba47d2',
    950: '#000000',
  },
}
SCSS
$custom: #ba47d2;
$custom-light: #d283e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47d2",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 210
  },
  "hsl": {
    "h": 289.64,
    "s": 60.699,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60904,
    "c": 0.22048,
    "h": 320.3
  },
  "luminance": 0.19599
}

Semantic roles & 50–950 ramp

primary
#BA47D2
secondary
#A7D89D
accent
#E44460
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA47D2

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

Preview Lab → · Contrast checker → · Palette generator →

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