#BA43E2#BA43E2

#BA43E2 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.5% C 0.239 H 316.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA43E2
RGBrgb(186, 67, 226)
HSLhsl(285, 73%, 57%)
HSVhsv(285, 70%, 89%)
CMYKcmyk(17.7%, 70.4%, 0%, 11.4%)
CIE-LABlab(51.78, 69.57, -58.90)
CIE-LCHlch(51.78, 91.15, 319.75°)
OKLaboklab(61.49% 0.1728 -0.1657)
OKLCHoklch(61.49% 0.239 316.2)
XYZxyz(35.9822, 19.9458, 73.8913)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA43E2 #6BE243
analogous
#6B43E2 #BA43E2 #E243BA
triadic
#BA43E2 #E2BA43 #43E2BA
tetradic
#BA43E2 #E26B43 #6BE243 #43BAE2
square
#BA43E2 #E26B43 #6BE243 #43BAE2
split-complementary
#BA43E2 #BAE243 #43E26B
monochromatic
#741794 #9E1FC9 #BA43E2 #CD78EA #E1ADF2

Accessibility & contrast

On white

4.21
#BA43E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#BA43E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA43E2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA43E2#FFFFFF#000000##000000
##BA43E21.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#427FDE
Tritanopia (blue-blind)
#B7638E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba43e2;
/* rgb */ color: rgb(186, 67, 226);
/* oklch */ color: oklch(61.5% 0.239 316.2);
Tailwind
colors: {
  custom: {
    50: '#d381ec',
    500: '#ba43e2',
    950: '#000000',
  },
}
SCSS
$custom: #ba43e2;
$custom-light: #d381ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba43e2",
  "rgb": {
    "r": 186,
    "g": 67,
    "b": 226
  },
  "hsl": {
    "h": 284.906,
    "s": 73.272,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61492,
    "c": 0.2394,
    "h": 316.2
  },
  "luminance": 0.19944
}

Semantic roles & 50–950 ramp

primary
#BA43E2
secondary
#B0E1A0
accent
#F03866
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA43E2

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

Preview Lab → · Contrast checker → · Palette generator →

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