#BA47BE#BA47BE

#BA47BE is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 59.8% C 0.203 H 326.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA47BE
RGBrgb(186, 71, 190)
HSLhsl(298, 48%, 51%)
HSVhsv(298, 63%, 75%)
CMYKcmyk(2.1%, 62.6%, 0%, 25.5%)
CIE-LABlab(50.29, 61.35, -40.65)
CIE-LCHlch(50.29, 73.60, 326.47°)
OKLaboklab(59.77% 0.1692 -0.1125)
OKLCHoklch(59.77% 0.203 326.4)
XYZxyz(31.7966, 18.6653, 50.6332)
Luminance0.1866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47BE #4BBE47
analogous
#7E47BE #BA47BE #BE4786
triadic
#BA47BE #BEBA47 #47BEBA
tetradic
#BA47BE #BE7E47 #4BBE47 #4786BE
square
#BA47BE #BE7E47 #4BBE47 #4786BE
split-complementary
#BA47BE #86BE47 #47BE7E
monochromatic
#642466 #903494 #BA47BE #CB74CE #DCA1DE

Accessibility & contrast

On white

4.44
#BA47BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#BA47BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47BE
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47BE#FFFFFF#000000##000000
##BA47BE1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#356EC2
Deuteranopia (green-blind)
#607DBB
Tritanopia (blue-blind)
#BF577C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba47be;
/* rgb */ color: rgb(186, 71, 190);
/* oklch */ color: oklch(59.8% 0.203 326.4);
Tailwind
colors: {
  custom: {
    50: '#d282d2',
    500: '#ba47be',
    950: '#000000',
  },
}
SCSS
$custom: #ba47be;
$custom-light: #d282d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47be",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 190
  },
  "hsl": {
    "h": 297.983,
    "s": 47.791,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59766,
    "c": 0.20319,
    "h": 326.4
  },
  "luminance": 0.18663
}

Semantic roles & 50–950 ramp

primary
#BA47BE
secondary
#98CB96
accent
#D75055
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA47BE

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

Preview Lab → · Contrast checker → · Palette generator →

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