#BA3FA7#BA3FA7

#BA3FA7 is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.7% C 0.196 H 334.5°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BA3FA7
RGBrgb(186, 63, 167)
HSLhsl(309, 49%, 49%)
HSVhsv(309, 66%, 73%)
CMYKcmyk(0%, 66.1%, 10.2%, 27.1%)
CIE-LABlab(47.99, 60.80, -30.81)
CIE-LCHlch(47.99, 68.16, 333.13°)
OKLaboklab(57.73% 0.1766 -0.0841)
OKLCHoklch(57.73% 0.196 334.5)
XYZxyz(29.0025, 16.7865, 38.2643)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FA7 #3FBA52
analogous
#903FBA #BA3FA7 #BA3F6A
triadic
#BA3FA7 #A7BA3F #3FA7BA
tetradic
#BA3FA7 #BA903F #3FBA52 #3F6ABA
square
#BA3FA7 #BA903F #3FBA52 #3F6ABA
split-complementary
#BA3FA7 #6ABA3F #3FBA90
monochromatic
#5F2055 #8C307E #BA3FA7 #CC6ABD #DC97D1

Accessibility & contrast

On white

4.82
#BA3FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BA3FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FA7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FA7#FFFFFF#000000##FFFFFF
##BA3FA71.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba3fa7;
/* rgb */ color: rgb(186, 63, 167);
/* oklch */ color: oklch(57.7% 0.196 334.5);
Tailwind
colors: {
  custom: {
    50: '#d27dc1',
    500: '#ba3fa7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fa7;
$custom-light: #d27dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fa7",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 309.268,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57725,
    "c": 0.19555,
    "h": 334.5
  },
  "luminance": 0.16784
}

Semantic roles & 50–950 ramp

primary
#BA3FA7
secondary
#8DC896
accent
#D9644F
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #BA3FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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