#BA3FA1#BA3FA1

#BA3FA1 is a mid, vivid pink. Relative luminance 0.166; OKLCH L 57.4% C 0.191 H 336.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA3FA1
RGBrgb(186, 63, 161)
HSLhsl(312, 49%, 49%)
HSVhsv(312, 66%, 73%)
CMYKcmyk(0%, 66.1%, 13.4%, 27.1%)
CIE-LABlab(47.71, 59.88, -27.69)
CIE-LCHlch(47.71, 65.97, 335.19°)
OKLaboklab(57.43% 0.1758 -0.0752)
OKLCHoklch(57.43% 0.191 336.8)
XYZxyz(28.4607, 16.5698, 35.4106)
Luminance0.1657 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FA1 #3FBA58
analogous
#963FBA #BA3FA1 #BA3F64
triadic
#BA3FA1 #A1BA3F #3FA1BA
tetradic
#BA3FA1 #BA963F #3FBA58 #3F64BA
square
#BA3FA1 #BA963F #3FBA58 #3F64BA
split-complementary
#BA3FA1 #64BA3F #3FBA96
monochromatic
#5F2052 #8C3079 #BA3FA1 #CC6AB8 #DC97CE

Accessibility & contrast

On white

4.87
#BA3FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BA3FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FA1
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FA1#FFFFFF#000000##FFFFFF
##BA3FA11.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4265A4
Deuteranopia (green-blind)
#69789E
Tritanopia (blue-blind)
#C4456A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba3fa1;
/* rgb */ color: rgb(186, 63, 161);
/* oklch */ color: oklch(57.4% 0.191 336.8);
Tailwind
colors: {
  custom: {
    50: '#d27dbd',
    500: '#ba3fa1',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fa1;
$custom-light: #d27dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fa1",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 312.195,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57433,
    "c": 0.19116,
    "h": 336.8
  },
  "luminance": 0.16567
}

Semantic roles & 50–950 ramp

primary
#BA3FA1
secondary
#8DC899
accent
#D96B4F
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #BA3FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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