#BA47B2#BA47B2

#BA47B2 is a mid, vivid purple. Relative luminance 0.182; OKLCH L 59.1% C 0.193 H 330.5°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA47B2
RGBrgb(186, 71, 178)
HSLhsl(304, 45%, 50%)
HSVhsv(304, 62%, 73%)
CMYKcmyk(0%, 61.8%, 4.3%, 27.1%)
CIE-LABlab(49.69, 59.30, -34.61)
CIE-LCHlch(49.69, 68.66, 329.73°)
OKLaboklab(59.13% 0.1683 -0.095)
OKLCHoklch(59.13% 0.193 330.5)
XYZxyz(30.5387, 18.1621, 44.0080)
Luminance0.1816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47B2 #47BA4F
analogous
#8847BA #BA47B2 #BA4778
triadic
#BA47B2 #B2BA47 #47B2BA
tetradic
#BA47B2 #BA8847 #47BA4F #4778BA
square
#BA47B2 #BA8847 #47BA4F #4778BA
split-complementary
#BA47B2 #78BA47 #47BA88
monochromatic
#62255E #8E3588 #BA47B2 #CB74C5 #DBA0D7

Accessibility & contrast

On white

4.53
#BA47B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#BA47B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47B2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47B2#FFFFFF#000000##000000
##BA47B21.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#667CAF
Tritanopia (blue-blind)
#C15376
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba47b2;
/* rgb */ color: rgb(186, 71, 178);
/* oklch */ color: oklch(59.1% 0.193 330.5);
Tailwind
colors: {
  custom: {
    50: '#d282c9',
    500: '#ba47b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba47b2;
$custom-light: #d282c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47b2",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 304.174,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59134,
    "c": 0.19326,
    "h": 330.5
  },
  "luminance": 0.1816
}

Semantic roles & 50–950 ramp

primary
#BA47B2
secondary
#95C898
accent
#D55C53
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA47B2

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

Preview Lab → · Contrast checker → · Palette generator →

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