#BA3FB7#BA3FB7

#BA3FB7 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.6% C 0.208 H 328.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BA3FB7
RGBrgb(186, 63, 183)
HSLhsl(301, 49%, 49%)
HSVhsv(301, 66%, 73%)
CMYKcmyk(0%, 66.1%, 1.6%, 27.1%)
CIE-LABlab(48.78, 63.37, -38.97)
CIE-LCHlch(48.78, 74.39, 328.41°)
OKLaboklab(58.55% 0.1779 -0.1076)
OKLCHoklch(58.55% 0.208 328.8)
XYZxyz(30.5741, 17.4152, 46.5417)
Luminance0.1741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FB7 #3FBA42
analogous
#803FBA #BA3FB7 #BA3F7A
triadic
#BA3FB7 #B7BA3F #3FB7BA
tetradic
#BA3FB7 #BA803F #3FBA42 #3F7ABA
square
#BA3FB7 #BA803F #3FBA42 #3F7ABA
split-complementary
#BA3FB7 #7ABA3F #3FBA80
monochromatic
#5F205D #8C308A #BA3FB7 #CC6ACA #DC97DA

Accessibility & contrast

On white

4.68
#BA3FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#BA3FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FB7
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FB7#FFFFFF#000000##FFFFFF
##BA3FB71.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3069BA
Deuteranopia (green-blind)
#5F7AB4
Tritanopia (blue-blind)
#C04F76
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba3fb7;
/* rgb */ color: rgb(186, 63, 183);
/* oklch */ color: oklch(58.6% 0.208 328.8);
Tailwind
colors: {
  custom: {
    50: '#d27ecd',
    500: '#ba3fb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fb7;
$custom-light: #d27ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fb7",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 183
  },
  "hsl": {
    "h": 301.463,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58553,
    "c": 0.2079,
    "h": 328.8
  },
  "luminance": 0.17413
}

Semantic roles & 50–950 ramp

primary
#BA3FB7
secondary
#8DC88F
accent
#D9524F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #BA3FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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