#BA47CB#BA47CB

#BA47CB is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.5% C 0.214 H 322.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BA47CB
RGBrgb(186, 71, 203)
HSLhsl(292, 56%, 54%)
HSVhsv(292, 65%, 80%)
CMYKcmyk(8.4%, 65%, 0%, 20.4%)
CIE-LABlab(50.99, 63.67, -47.05)
CIE-LCHlch(50.99, 79.17, 323.54°)
OKLaboklab(60.49% 0.1696 -0.1311)
OKLCHoklch(60.49% 0.214 322.3)
XYZxyz(33.2813, 19.2592, 58.4527)
Luminance0.1926 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47CB #58CB47
analogous
#7847CB #BA47CB #CB479A
triadic
#BA47CB #CBBA47 #47CBBA
tetradic
#BA47CB #CB7847 #58CB47 #479ACB
square
#BA47CB #CB7847 #58CB47 #479ACB
split-complementary
#BA47CB #9ACB47 #47CB78
monochromatic
#6B2176 #972FA6 #BA47CB #CC77D8 #DEA6E6

Accessibility & contrast

On white

4.33
#BA47CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#BA47CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47CB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47CB#FFFFFF#000000##000000
##BA47CB1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2571CF
Deuteranopia (green-blind)
#587EC8
Tritanopia (blue-blind)
#BC5D83
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba47cb;
/* rgb */ color: rgb(186, 71, 203);
/* oklch */ color: oklch(60.5% 0.214 322.3);
Tailwind
colors: {
  custom: {
    50: '#d282db',
    500: '#ba47cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba47cb;
$custom-light: #d282db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47cb",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 292.273,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60494,
    "c": 0.21434,
    "h": 322.3
  },
  "luminance": 0.19257
}

Semantic roles & 50–950 ramp

primary
#BA47CB
secondary
#A2D39B
accent
#DF495C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA47CB

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

Preview Lab → · Contrast checker → · Palette generator →

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