#BA3FA8#BA3FA8

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

Color values

HEX#BA3FA8
RGBrgb(186, 63, 168)
HSLhsl(309, 49%, 49%)
HSVhsv(309, 66%, 73%)
CMYKcmyk(0%, 66.1%, 9.7%, 27.1%)
CIE-LABlab(48.04, 60.95, -31.33)
CIE-LCHlch(48.04, 68.53, 332.80°)
OKLaboklab(57.77% 0.1767 -0.0856)
OKLCHoklch(57.77% 0.196 334.2)
XYZxyz(29.0953, 16.8236, 38.7531)
Luminance0.1682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FA8 #3FBA51
analogous
#8F3FBA #BA3FA8 #BA3F6B
triadic
#BA3FA8 #A8BA3F #3FA8BA
tetradic
#BA3FA8 #BA8F3F #3FBA51 #3F6BBA
square
#BA3FA8 #BA8F3F #3FBA51 #3F6BBA
split-complementary
#BA3FA8 #6BBA3F #3FBA8F
monochromatic
#5F2055 #8C307F #BA3FA8 #CC6ABE #DC97D2

Accessibility & contrast

On white

4.81
#BA3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA3FA8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FA8#FFFFFF#000000##FFFFFF
##BA3FA81.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D66AB
Deuteranopia (green-blind)
#6679A5
Tritanopia (blue-blind)
#C3486E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3fa8;
/* rgb */ color: rgb(186, 63, 168);
/* oklch */ color: oklch(57.8% 0.196 334.2);
Tailwind
colors: {
  custom: {
    50: '#d27dc2',
    500: '#ba3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fa8;
$custom-light: #d27dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fa8",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 308.78,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57774,
    "c": 0.1963,
    "h": 334.2
  },
  "luminance": 0.16821
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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