#BA3FA9#BA3FA9

#BA3FA9 is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.8% C 0.197 H 333.8°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#BA3FA9
RGBrgb(186, 63, 169)
HSLhsl(308, 49%, 49%)
HSVhsv(308, 66%, 73%)
CMYKcmyk(0%, 66.1%, 9.1%, 27.1%)
CIE-LABlab(48.08, 61.11, -31.84)
CIE-LCHlch(48.08, 68.91, 332.48°)
OKLaboklab(57.82% 0.1768 -0.087)
OKLCHoklch(57.82% 0.197 333.8)
XYZxyz(29.1888, 16.8610, 39.2456)
Luminance0.1686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FA9 #3FBA50
analogous
#8E3FBA #BA3FA9 #BA3F6C
triadic
#BA3FA9 #A9BA3F #3FA9BA
tetradic
#BA3FA9 #BA8E3F #3FBA50 #3F6CBA
square
#BA3FA9 #BA8E3F #3FBA50 #3F6CBA
split-complementary
#BA3FA9 #6CBA3F #3FBA8E
monochromatic
#5F2056 #8C307F #BA3FA9 #CC6ABF #DC97D2

Accessibility & contrast

On white

4.80
#BA3FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BA3FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FA9
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FA9#FFFFFF#000000##FFFFFF
##BA3FA91.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AC
Deuteranopia (green-blind)
#6679A6
Tritanopia (blue-blind)
#C2496E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3fa9;
/* rgb */ color: rgb(186, 63, 169);
/* oklch */ color: oklch(57.8% 0.197 333.8);
Tailwind
colors: {
  custom: {
    50: '#d27dc3',
    500: '#ba3fa9',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fa9;
$custom-light: #d27dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fa9",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 169
  },
  "hsl": {
    "h": 308.293,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57824,
    "c": 0.19704,
    "h": 333.8
  },
  "luminance": 0.16859
}

Semantic roles & 50–950 ramp

primary
#BA3FA9
secondary
#8DC895
accent
#D9624F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A12
muted
#837C81

Preview Lab

Preview with #BA3FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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