#BA3FAB#BA3FAB

#BA3FAB is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.9% C 0.199 H 333.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA3FAB
RGBrgb(186, 63, 171)
HSLhsl(307, 49%, 49%)
HSVhsv(307, 66%, 73%)
CMYKcmyk(0%, 66.1%, 8.1%, 27.1%)
CIE-LABlab(48.18, 61.42, -32.87)
CIE-LCHlch(48.18, 69.67, 331.85°)
OKLaboklab(57.93% 0.177 -0.09)
OKLCHoklch(57.93% 0.199 333)
XYZxyz(29.3780, 16.9367, 40.2420)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FAB #3FBA4E
analogous
#8C3FBA #BA3FAB #BA3F6E
triadic
#BA3FAB #ABBA3F #3FABBA
tetradic
#BA3FAB #BA8C3F #3FBA4E #3F6EBA
square
#BA3FAB #BA8C3F #3FBA4E #3F6EBA
split-complementary
#BA3FAB #6EBA3F #3FBA8C
monochromatic
#5F2057 #8C3081 #BA3FAB #CC6AC0 #DC97D4

Accessibility & contrast

On white

4.79
#BA3FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#BA3FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FAB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FAB#FFFFFF#000000##FFFFFF
##BA3FAB1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B67AE
Deuteranopia (green-blind)
#6579A8
Tritanopia (blue-blind)
#C24A6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3fab;
/* rgb */ color: rgb(186, 63, 171);
/* oklch */ color: oklch(57.9% 0.199 333.0);
Tailwind
colors: {
  custom: {
    50: '#d27dc4',
    500: '#ba3fab',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fab;
$custom-light: #d27dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fab",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 171
  },
  "hsl": {
    "h": 307.317,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57925,
    "c": 0.19855,
    "h": 333
  },
  "luminance": 0.16934
}

Semantic roles & 50–950 ramp

primary
#BA3FAB
secondary
#8DC894
accent
#D9604F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A12
muted
#837C81

Preview Lab

Preview with #BA3FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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