#BA43B2#BA43B2

#BA43B2 is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.7% C 0.199 H 330.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA43B2
RGBrgb(186, 67, 178)
HSLhsl(304, 47%, 50%)
HSVhsv(304, 64%, 73%)
CMYKcmyk(0%, 64%, 4.3%, 27.1%)
CIE-LABlab(49.09, 60.96, -35.55)
CIE-LCHlch(49.09, 70.57, 329.75°)
OKLaboklab(58.7% 0.173 -0.0977)
OKLCHoklch(58.7% 0.199 330.5)
XYZxyz(30.2926, 17.6700, 43.9260)
Luminance0.1767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA43B2 #43BA4B
analogous
#8743BA #BA43B2 #BA4376
triadic
#BA43B2 #B2BA43 #43B2BA
tetradic
#BA43B2 #BA8743 #43BA4B #4376BA
square
#BA43B2 #BA8743 #43BA4B #4376BA
split-complementary
#BA43B2 #76BA43 #43BA87
monochromatic
#60235C #8D3387 #BA43B2 #CB6FC5 #DB9CD7

Accessibility & contrast

On white

4.63
#BA43B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#BA43B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA43B2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA43B2#FFFFFF#000000##FFFFFF
##BA43B21.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#647BAF
Tritanopia (blue-blind)
#C15075
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba43b2;
/* rgb */ color: rgb(186, 67, 178);
/* oklch */ color: oklch(58.7% 0.199 330.5);
Tailwind
colors: {
  custom: {
    50: '#d280c9',
    500: '#ba43b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba43b2;
$custom-light: #d280c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba43b2",
  "rgb": {
    "r": 186,
    "g": 67,
    "b": 178
  },
  "hsl": {
    "h": 304.034,
    "s": 47.036,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58699,
    "c": 0.19873,
    "h": 330.5
  },
  "luminance": 0.17668
}

Semantic roles & 50–950 ramp

primary
#BA43B2
secondary
#91C895
accent
#D75A51
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA43B2

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

Preview Lab → · Contrast checker → · Palette generator →

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