#BA47D1#BA47D1

#BA47D1 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.8% C 0.220 H 320.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA47D1
RGBrgb(186, 71, 209)
HSLhsl(290, 60%, 55%)
HSVhsv(290, 66%, 82%)
CMYKcmyk(11%, 66%, 0%, 18%)
CIE-LABlab(51.33, 64.78, -49.95)
CIE-LCHlch(51.33, 81.80, 322.36°)
OKLaboklab(60.85% 0.1696 -0.1395)
OKLCHoklch(60.85% 0.22 320.5)
XYZxyz(34.0102, 19.5507, 62.2915)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47D1 #5ED147
analogous
#7547D1 #BA47D1 #D147A3
triadic
#BA47D1 #D1BA47 #47D1BA
tetradic
#BA47D1 #D17547 #5ED147 #47A3D1
square
#BA47D1 #D17547 #5ED147 #47A3D1
split-complementary
#BA47D1 #A3D147 #47D175
monochromatic
#6E207E #992CAF #BA47D1 #CC78DD #DFA9E9

Accessibility & contrast

On white

4.28
#BA47D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#BA47D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47D1
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47D1#FFFFFF#000000##000000
##BA47D11.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A72D5
Deuteranopia (green-blind)
#547ECE
Tritanopia (blue-blind)
#BB5F86
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba47d1;
/* rgb */ color: rgb(186, 71, 209);
/* oklch */ color: oklch(60.8% 0.220 320.5);
Tailwind
colors: {
  custom: {
    50: '#d283e0',
    500: '#ba47d1',
    950: '#000000',
  },
}
SCSS
$custom: #ba47d1;
$custom-light: #d283e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47d1",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 209
  },
  "hsl": {
    "h": 290,
    "s": 60,
    "l": 54.902
  },
  "oklch": {
    "l": 0.60845,
    "c": 0.2196,
    "h": 320.5
  },
  "luminance": 0.19549
}

Semantic roles & 50–950 ramp

primary
#BA47D1
secondary
#A7D79D
accent
#E3455F
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA47D1

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

Preview Lab → · Contrast checker → · Palette generator →

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