#BA41AF#BA41AF

#BA41AF is a mid, vivid purple. Relative luminance 0.173; OKLCH L 58.3% C 0.199 H 331.6°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA41AF
RGBrgb(186, 65, 175)
HSLhsl(305, 48%, 49%)
HSVhsv(305, 65%, 73%)
CMYKcmyk(0%, 65.1%, 5.9%, 27.1%)
CIE-LABlab(48.66, 61.28, -34.48)
CIE-LCHlch(48.66, 70.31, 330.64°)
OKLaboklab(58.33% 0.1751 -0.0946)
OKLCHoklch(58.33% 0.199 331.6)
XYZxyz(29.8778, 17.3171, 42.3180)
Luminance0.1731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41AF #41BA4C
analogous
#8941BA #BA41AF #BA4172
triadic
#BA41AF #AFBA41 #41AFBA
tetradic
#BA41AF #BA8941 #41BA4C #4172BA
square
#BA41AF #BA8941 #41BA4C #4172BA
split-complementary
#BA41AF #72BA41 #41BA89
monochromatic
#5F215A #8D3184 #BA41AF #CC6CC3 #DC9AD6

Accessibility & contrast

On white

4.71
#BA41AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#BA41AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41AF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41AF#FFFFFF#000000##FFFFFF
##BA41AF1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A69B2
Deuteranopia (green-blind)
#647AAC
Tritanopia (blue-blind)
#C14D72
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba41af;
/* rgb */ color: rgb(186, 65, 175);
/* oklch */ color: oklch(58.3% 0.199 331.6);
Tailwind
colors: {
  custom: {
    50: '#d27fc7',
    500: '#ba41af',
    950: '#000000',
  },
}
SCSS
$custom: #ba41af;
$custom-light: #d27fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41af",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 305.455,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58334,
    "c": 0.19902,
    "h": 331.6
  },
  "luminance": 0.17315
}

Semantic roles & 50–950 ramp

primary
#BA41AF
secondary
#8FC894
accent
#D85C50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA41AF

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

Preview Lab → · Contrast checker → · Palette generator →

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