#BA4BAB#BA4BAB

#BA4BAB is a mid, vivid purple. Relative luminance 0.184; OKLCH L 59.2% C 0.182 H 333.2°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BA4BAB
RGBrgb(186, 75, 171)
HSLhsl(308, 45%, 51%)
HSVhsv(308, 60%, 73%)
CMYKcmyk(0%, 59.7%, 8.1%, 27.1%)
CIE-LABlab(49.99, 56.41, -30.04)
CIE-LCHlch(49.99, 63.91, 331.97°)
OKLaboklab(59.25% 0.1624 -0.082)
OKLCHoklch(59.25% 0.182 333.2)
XYZxyz(30.1165, 18.4138, 40.4882)
Luminance0.1841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BAB #4BBA5A
analogous
#914BBA #BA4BAB #BA4B73
triadic
#BA4BAB #ABBA4B #4BABBA
tetradic
#BA4BAB #BA914B #4BBA5A #4B73BA
square
#BA4BAB #BA914B #4BBA5A #4B73BA
split-complementary
#BA4BAB #73BA4B #4BBA91
monochromatic
#64265C #903784 #BA4BAB #CB77C0 #DCA3D4

Accessibility & contrast

On white

4.48
#BA4BAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#BA4BAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BAB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BAB#FFFFFF#000000##000000
##BA4BAB1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#486DAE
Deuteranopia (green-blind)
#6B7DA8
Tritanopia (blue-blind)
#C25374
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4bab;
/* rgb */ color: rgb(186, 75, 171);
/* oklch */ color: oklch(59.2% 0.182 333.2);
Tailwind
colors: {
  custom: {
    50: '#d284c4',
    500: '#ba4bab',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bab;
$custom-light: #d284c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bab",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 308.108,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59247,
    "c": 0.18191,
    "h": 333.2
  },
  "luminance": 0.18412
}

Semantic roles & 50–950 ramp

primary
#BA4BAB
secondary
#98C99F
accent
#D46554
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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