#BA47D7#BA47D7

#BA47D7 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.2% C 0.225 H 318.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA47D7
RGBrgb(186, 71, 215)
HSLhsl(288, 64%, 56%)
HSVhsv(288, 67%, 84%)
CMYKcmyk(13.5%, 67%, 0%, 15.7%)
CIE-LABlab(51.67, 65.90, -52.82)
CIE-LCHlch(51.67, 84.46, 321.28°)
OKLaboklab(61.2% 0.1694 -0.1479)
OKLCHoklch(61.2% 0.225 318.9)
XYZxyz(34.7671, 19.8535, 66.2776)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47D7 #64D747
analogous
#7247D7 #BA47D7 #D747AC
triadic
#BA47D7 #D7BA47 #47D7BA
tetradic
#BA47D7 #D77247 #64D747 #47ACD7
square
#BA47D7 #D77247 #64D747 #47ACD7
split-complementary
#BA47D7 #ACD747 #47D772
monochromatic
#711D86 #9C28B9 #BA47D7 #CD79E2 #E0ACED

Accessibility & contrast

On white

4.23
#BA47D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA47D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47D7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47D7#FFFFFF#000000##000000
##BA47D71.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0674DB
Deuteranopia (green-blind)
#507FD4
Tritanopia (blue-blind)
#BA618A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba47d7;
/* rgb */ color: rgb(186, 71, 215);
/* oklch */ color: oklch(61.2% 0.225 318.9);
Tailwind
colors: {
  custom: {
    50: '#d283e4',
    500: '#ba47d7',
    950: '#000000',
  },
}
SCSS
$custom: #ba47d7;
$custom-light: #d283e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47d7",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 215
  },
  "hsl": {
    "h": 287.917,
    "s": 64.286,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61204,
    "c": 0.22491,
    "h": 318.9
  },
  "luminance": 0.19852
}

Semantic roles & 50–950 ramp

primary
#BA47D7
secondary
#ABDB9F
accent
#E74162
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA47D7

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

Preview Lab → · Contrast checker → · Palette generator →

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