#BA3FA2#BA3FA2

#BA3FA2 is a mid, vivid pink. Relative luminance 0.166; OKLCH L 57.5% C 0.192 H 336.5°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA3FA2
RGBrgb(186, 63, 162)
HSLhsl(312, 49%, 49%)
HSVhsv(312, 66%, 73%)
CMYKcmyk(0%, 66.1%, 12.9%, 27.1%)
CIE-LABlab(47.76, 60.03, -28.21)
CIE-LCHlch(47.76, 66.33, 334.83°)
OKLaboklab(57.48% 0.1759 -0.0766)
OKLCHoklch(57.48% 0.192 336.5)
XYZxyz(28.5492, 16.6052, 35.8769)
Luminance0.1660 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FA2 #3FBA57
analogous
#953FBA #BA3FA2 #BA3F65
triadic
#BA3FA2 #A2BA3F #3FA2BA
tetradic
#BA3FA2 #BA953F #3FBA57 #3F65BA
square
#BA3FA2 #BA953F #3FBA57 #3F65BA
split-complementary
#BA3FA2 #65BA3F #3FBA95
monochromatic
#5F2052 #8C307A #BA3FA2 #CC6AB9 #DC97CF

Accessibility & contrast

On white

4.86
#BA3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BA3FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FA2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FA2#FFFFFF#000000##FFFFFF
##BA3FA21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A5
Deuteranopia (green-blind)
#69789F
Tritanopia (blue-blind)
#C3466B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba3fa2;
/* rgb */ color: rgb(186, 63, 162);
/* oklch */ color: oklch(57.5% 0.192 336.5);
Tailwind
colors: {
  custom: {
    50: '#d27dbe',
    500: '#ba3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fa2;
$custom-light: #d27dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fa2",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 311.707,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57481,
    "c": 0.19188,
    "h": 336.5
  },
  "luminance": 0.16603
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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