#BA3FAC#BA3FAC

#BA3FAC is a mid, vivid purple. Relative luminance 0.170; OKLCH L 58.0% C 0.199 H 332.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA3FAC
RGBrgb(186, 63, 172)
HSLhsl(307, 49%, 49%)
HSVhsv(307, 66%, 73%)
CMYKcmyk(0%, 66.1%, 7.5%, 27.1%)
CIE-LABlab(48.23, 61.58, -33.39)
CIE-LCHlch(48.23, 70.05, 331.54°)
OKLaboklab(57.98% 0.1771 -0.0915)
OKLCHoklch(57.98% 0.199 332.7)
XYZxyz(29.4737, 16.9750, 40.7459)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FAC #3FBA4D
analogous
#8B3FBA #BA3FAC #BA3F6F
triadic
#BA3FAC #ACBA3F #3FACBA
tetradic
#BA3FAC #BA8B3F #3FBA4D #3F6FBA
square
#BA3FAC #BA8B3F #3FBA4D #3F6FBA
split-complementary
#BA3FAC #6FBA3F #3FBA8B
monochromatic
#5F2057 #8C3082 #BA3FAC #CC6AC1 #DC97D4

Accessibility & contrast

On white

4.78
#BA3FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#BA3FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FAC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FAC#FFFFFF#000000##FFFFFF
##BA3FAC1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A67AF
Deuteranopia (green-blind)
#6579A9
Tritanopia (blue-blind)
#C24A70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3fac;
/* rgb */ color: rgb(186, 63, 172);
/* oklch */ color: oklch(58.0% 0.199 332.7);
Tailwind
colors: {
  custom: {
    50: '#d27dc5',
    500: '#ba3fac',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fac;
$custom-light: #d27dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fac",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 306.829,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57976,
    "c": 0.19931,
    "h": 332.7
  },
  "luminance": 0.16973
}

Semantic roles & 50–950 ramp

primary
#BA3FAC
secondary
#8DC894
accent
#D95F4F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #BA3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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