#BA4FAB#BA4FAB

#BA4FAB is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.7% C 0.176 H 333.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA4FAB
RGBrgb(186, 79, 171)
HSLhsl(308, 44%, 52%)
HSVhsv(308, 58%, 73%)
CMYKcmyk(0%, 57.5%, 8.1%, 27.1%)
CIE-LABlab(50.66, 54.61, -29.01)
CIE-LCHlch(50.66, 61.84, 332.03°)
OKLaboklab(59.73% 0.1572 -0.0791)
OKLCHoklch(59.73% 0.176 333.3)
XYZxyz(30.3964, 18.9735, 40.5815)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FAB #4FBA5E
analogous
#934FBA #BA4FAB #BA4F76
triadic
#BA4FAB #ABBA4F #4FABBA
tetradic
#BA4FAB #BA934F #4FBA5E #4F76BA
square
#BA4FAB #BA934F #4FBA5E #4F76BA
split-complementary
#BA4FAB #76BA4F #4FBA93
monochromatic
#66285E #923986 #BA4FAB #CB7BC0 #DCA7D5

Accessibility & contrast

On white

4.38
#BA4FAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#BA4FAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FAB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FAB#FFFFFF#000000##000000
##BA4FAB1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6FAE
Deuteranopia (green-blind)
#6E7EA8
Tritanopia (blue-blind)
#C25776
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4fab;
/* rgb */ color: rgb(186, 79, 171);
/* oklch */ color: oklch(59.7% 0.176 333.3);
Tailwind
colors: {
  custom: {
    50: '#d186c4',
    500: '#ba4fab',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fab;
$custom-light: #d186c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fab",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 171
  },
  "hsl": {
    "h": 308.411,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59733,
    "c": 0.17593,
    "h": 333.3
  },
  "luminance": 0.18971
}

Semantic roles & 50–950 ramp

primary
#BA4FAB
secondary
#9BCAA2
accent
#D36654
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA4FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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