#BA45AB#BA45AB

#BA45AB is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.6% C 0.191 H 333.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#BA45AB
RGBrgb(186, 69, 171)
HSLhsl(308, 46%, 50%)
HSVhsv(308, 63%, 73%)
CMYKcmyk(0%, 62.9%, 8.1%, 27.1%)
CIE-LABlab(49.05, 59.00, -31.50)
CIE-LCHlch(49.05, 66.88, 331.90°)
OKLaboklab(58.56% 0.1699 -0.0861)
OKLCHoklch(58.56% 0.191 333.1)
XYZxyz(29.7286, 17.6379, 40.3589)
Luminance0.1764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45AB #45BA54
analogous
#8E45BA #BA45AB #BA4571
triadic
#BA45AB #ABBA45 #45ABBA
tetradic
#BA45AB #BA8E45 #45BA54 #4571BA
square
#BA45AB #BA8E45 #45BA54 #4571BA
split-complementary
#BA45AB #71BA45 #45BA8E
monochromatic
#612459 #8D3482 #BA45AB #CB72BF #DB9ED3

Accessibility & contrast

On white

4.64
#BA45AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#BA45AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA45AB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45AB#FFFFFF#000000##FFFFFF
##BA45AB1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426AAE
Deuteranopia (green-blind)
#687BA8
Tritanopia (blue-blind)
#C24E72
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba45ab;
/* rgb */ color: rgb(186, 69, 171);
/* oklch */ color: oklch(58.6% 0.191 333.1);
Tailwind
colors: {
  custom: {
    50: '#d280c4',
    500: '#ba45ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba45ab;
$custom-light: #d280c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45ab",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 307.692,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.5856,
    "c": 0.1905,
    "h": 333.1
  },
  "luminance": 0.17636
}

Semantic roles & 50–950 ramp

primary
#BA45AB
secondary
#93C89A
accent
#D66352
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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