#BA3EA6#BA3EA6

#BA3EA6 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.6% C 0.196 H 334.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BA3EA6
RGBrgb(186, 62, 166)
HSLhsl(310, 50%, 49%)
HSVhsv(310, 67%, 73%)
CMYKcmyk(0%, 66.7%, 10.8%, 27.1%)
CIE-LABlab(47.80, 61.03, -30.51)
CIE-LCHlch(47.80, 68.23, 333.44°)
OKLaboklab(57.57% 0.1776 -0.0832)
OKLCHoklch(57.57% 0.196 334.9)
XYZxyz(28.8555, 16.6399, 37.7611)
Luminance0.1664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EA6 #3EBA52
analogous
#903EBA #BA3EA6 #BA3E68
triadic
#BA3EA6 #A6BA3E #3EA6BA
tetradic
#BA3EA6 #BA903E #3EBA52 #3E68BA
square
#BA3EA6 #BA903E #3EBA52 #3E68BA
split-complementary
#BA3EA6 #68BA3E #3EBA90
monochromatic
#5E1F54 #8C2F7D #BA3EA6 #CD68BD #DC96D1

Accessibility & contrast

On white

4.85
#BA3EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#BA3EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EA6
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EA6#FFFFFF#000000##FFFFFF
##BA3EA61.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D66A9
Deuteranopia (green-blind)
#6778A3
Tritanopia (blue-blind)
#C3476D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba3ea6;
/* rgb */ color: rgb(186, 62, 166);
/* oklch */ color: oklch(57.6% 0.196 334.9);
Tailwind
colors: {
  custom: {
    50: '#d27dc0',
    500: '#ba3ea6',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ea6;
$custom-light: #d27dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ea6",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 309.677,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57574,
    "c": 0.19611,
    "h": 334.9
  },
  "luminance": 0.16638
}

Semantic roles & 50–950 ramp

primary
#BA3EA6
secondary
#8CC896
accent
#DA654E
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA3EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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