#BA3FB6#BA3FB6

#BA3FB6 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.5% C 0.207 H 329.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BA3FB6
RGBrgb(186, 63, 182)
HSLhsl(302, 49%, 49%)
HSVhsv(302, 66%, 73%)
CMYKcmyk(0%, 66.1%, 2.2%, 27.1%)
CIE-LABlab(48.73, 63.20, -38.47)
CIE-LCHlch(48.73, 73.99, 328.68°)
OKLaboklab(58.5% 0.1779 -0.1061)
OKLCHoklch(58.5% 0.207 329.2)
XYZxyz(30.4704, 17.3737, 45.9955)
Luminance0.1737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FB6 #3FBA43
analogous
#813FBA #BA3FB6 #BA3F79
triadic
#BA3FB6 #B6BA3F #3FB6BA
tetradic
#BA3FB6 #BA813F #3FBA43 #3F79BA
square
#BA3FB6 #BA813F #3FBA43 #3F79BA
split-complementary
#BA3FB6 #79BA3F #3FBA81
monochromatic
#5F205D #8C3089 #BA3FB6 #CC6AC9 #DC97DA

Accessibility & contrast

On white

4.69
#BA3FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#BA3FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FB6
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FB6#FFFFFF#000000##FFFFFF
##BA3FB61.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3169B9
Deuteranopia (green-blind)
#607AB3
Tritanopia (blue-blind)
#C04E75
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba3fb6;
/* rgb */ color: rgb(186, 63, 182);
/* oklch */ color: oklch(58.5% 0.207 329.2);
Tailwind
colors: {
  custom: {
    50: '#d27ecc',
    500: '#ba3fb6',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fb6;
$custom-light: #d27ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fb6",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 182
  },
  "hsl": {
    "h": 301.951,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58499,
    "c": 0.20709,
    "h": 329.2
  },
  "luminance": 0.17372
}

Semantic roles & 50–950 ramp

primary
#BA3FB6
secondary
#8DC88F
accent
#D9534F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA3FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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