#BA4BB1#BA4BB1

#BA4BB1 is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.5% C 0.187 H 330.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA4BB1
RGBrgb(186, 75, 177)
HSLhsl(305, 45%, 51%)
HSVhsv(305, 60%, 73%)
CMYKcmyk(0%, 59.7%, 4.8%, 27.1%)
CIE-LABlab(50.27, 57.41, -33.12)
CIE-LCHlch(50.27, 66.27, 330.02°)
OKLaboklab(59.54% 0.1632 -0.0908)
OKLCHoklch(59.54% 0.187 330.9)
XYZxyz(30.7014, 18.6477, 43.5688)
Luminance0.1865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BB1 #4BBA54
analogous
#8B4BBA #BA4BB1 #BA4B79
triadic
#BA4BB1 #B1BA4B #4BB1BA
tetradic
#BA4BB1 #BA8B4B #4BBA54 #4B79BA
square
#BA4BB1 #BA8B4B #4BBA54 #4B79BA
split-complementary
#BA4BB1 #79BA4B #4BBA8B
monochromatic
#64265F #903789 #BA4BB1 #CB77C4 #DCA3D7

Accessibility & contrast

On white

4.44
#BA4BB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#BA4BB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BB1
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BB1#FFFFFF#000000##000000
##BA4BB11.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#456EB4
Deuteranopia (green-blind)
#697DAE
Tritanopia (blue-blind)
#C15577
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4bb1;
/* rgb */ color: rgb(186, 75, 177);
/* oklch */ color: oklch(59.5% 0.187 330.9);
Tailwind
colors: {
  custom: {
    50: '#d284c8',
    500: '#ba4bb1',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bb1;
$custom-light: #d284c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bb1",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 304.865,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59541,
    "c": 0.18675,
    "h": 330.9
  },
  "luminance": 0.18646
}

Semantic roles & 50–950 ramp

primary
#BA4BB1
secondary
#98C99C
accent
#D45E54
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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