#BA47BB#BA47BB

#BA47BB is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.6% C 0.201 H 327.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA47BB
RGBrgb(186, 71, 187)
HSLhsl(299, 46%, 51%)
HSVhsv(299, 62%, 73%)
CMYKcmyk(0.5%, 62%, 0%, 26.7%)
CIE-LABlab(50.14, 60.83, -39.15)
CIE-LCHlch(50.14, 72.34, 327.23°)
OKLaboklab(59.6% 0.169 -0.1081)
OKLCHoklch(59.6% 0.201 327.4)
XYZxyz(31.4721, 18.5355, 48.9241)
Luminance0.1853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47BB #48BB47
analogous
#8047BB #BA47BB #BB4782
triadic
#BA47BB #BBBA47 #47BBBA
tetradic
#BA47BB #BB8047 #48BB47 #4782BB
square
#BA47BB #BB8047 #48BB47 #4782BB
split-complementary
#BA47BB #82BB47 #47BB80
monochromatic
#622563 #8F3590 #BA47BB #CB74CC #DCA0DC

Accessibility & contrast

On white

4.46
#BA47BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#BA47BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47BB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47BB#FFFFFF#000000##000000
##BA47BB1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#386EBE
Deuteranopia (green-blind)
#627DB8
Tritanopia (blue-blind)
#BF567B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba47bb;
/* rgb */ color: rgb(186, 71, 187);
/* oklch */ color: oklch(59.6% 0.201 327.4);
Tailwind
colors: {
  custom: {
    50: '#d282d0',
    500: '#ba47bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba47bb;
$custom-light: #d282d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47bb",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 299.483,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59604,
    "c": 0.20067,
    "h": 327.4
  },
  "luminance": 0.18533
}

Semantic roles & 50–950 ramp

primary
#BA47BB
secondary
#96C995
accent
#D65253
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA47BB

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

Preview Lab → · Contrast checker → · Palette generator →

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