#BA3FA6#BA3FA6

#BA3FA6 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.7% C 0.195 H 334.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA3FA6
RGBrgb(186, 63, 166)
HSLhsl(310, 49%, 49%)
HSVhsv(310, 66%, 73%)
CMYKcmyk(0%, 66.1%, 10.8%, 27.1%)
CIE-LABlab(47.94, 60.64, -30.29)
CIE-LCHlch(47.94, 67.79, 333.46°)
OKLaboklab(57.68% 0.1764 -0.0826)
OKLCHoklch(57.68% 0.195 334.9)
XYZxyz(28.9104, 16.7497, 37.7794)
Luminance0.1675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FA6 #3FBA53
analogous
#913FBA #BA3FA6 #BA3F69
triadic
#BA3FA6 #A6BA3F #3FA6BA
tetradic
#BA3FA6 #BA913F #3FBA53 #3F69BA
square
#BA3FA6 #BA913F #3FBA53 #3F69BA
split-complementary
#BA3FA6 #69BA3F #3FBA91
monochromatic
#5F2054 #8C307D #BA3FA6 #CC6ABC #DC97D1

Accessibility & contrast

On white

4.83
#BA3FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#BA3FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FA6
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FA6#FFFFFF#000000##FFFFFF
##BA3FA61.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F66A9
Deuteranopia (green-blind)
#6778A3
Tritanopia (blue-blind)
#C3486D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3fa6;
/* rgb */ color: rgb(186, 63, 166);
/* oklch */ color: oklch(57.7% 0.195 334.9);
Tailwind
colors: {
  custom: {
    50: '#d27dc0',
    500: '#ba3fa6',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fa6;
$custom-light: #d27dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fa6",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 309.756,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57675,
    "c": 0.1948,
    "h": 334.9
  },
  "luminance": 0.16747
}

Semantic roles & 50–950 ramp

primary
#BA3FA6
secondary
#8DC897
accent
#D9654F
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #BA3FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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