#BA3FB1#BA3FB1

#BA3FB1 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.2% C 0.203 H 330.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA3FB1
RGBrgb(186, 63, 177)
HSLhsl(304, 49%, 49%)
HSVhsv(304, 66%, 73%)
CMYKcmyk(0%, 66.1%, 4.8%, 27.1%)
CIE-LABlab(48.47, 62.39, -35.94)
CIE-LCHlch(48.47, 72.00, 330.06°)
OKLaboklab(58.23% 0.1775 -0.0988)
OKLCHoklch(58.23% 0.203 330.9)
XYZxyz(29.9629, 17.1707, 43.3226)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FB1 #3FBA48
analogous
#863FBA #BA3FB1 #BA3F74
triadic
#BA3FB1 #B1BA3F #3FB1BA
tetradic
#BA3FB1 #BA863F #3FBA48 #3F74BA
square
#BA3FB1 #BA863F #3FBA48 #3F74BA
split-complementary
#BA3FB1 #74BA3F #3FBA86
monochromatic
#5F205A #8C3085 #BA3FB1 #CC6AC5 #DC97D7

Accessibility & contrast

On white

4.74
#BA3FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BA3FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FB1
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FB1#FFFFFF#000000##FFFFFF
##BA3FB11.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3668B4
Deuteranopia (green-blind)
#6279AE
Tritanopia (blue-blind)
#C14C73
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3fb1;
/* rgb */ color: rgb(186, 63, 177);
/* oklch */ color: oklch(58.2% 0.203 330.9);
Tailwind
colors: {
  custom: {
    50: '#d27ec8',
    500: '#ba3fb1',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fb1;
$custom-light: #d27ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fb1",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 177
  },
  "hsl": {
    "h": 304.39,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58234,
    "c": 0.20316,
    "h": 330.9
  },
  "luminance": 0.17168
}

Semantic roles & 50–950 ramp

primary
#BA3FB1
secondary
#8DC891
accent
#D9594F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA3FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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