#BA45AA#BA45AA

#BA45AA is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.5% C 0.190 H 333.5°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BA45AA
RGBrgb(186, 69, 170)
HSLhsl(308, 46%, 50%)
HSVhsv(308, 63%, 73%)
CMYKcmyk(0%, 62.9%, 8.6%, 27.1%)
CIE-LABlab(49.01, 58.84, -30.99)
CIE-LCHlch(49.01, 66.50, 332.22°)
OKLaboklab(58.51% 0.1698 -0.0846)
OKLCHoklch(58.51% 0.19 333.5)
XYZxyz(29.6336, 17.5999, 39.8588)
Luminance0.1760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45AA #45BA55
analogous
#8F45BA #BA45AA #BA4570
triadic
#BA45AA #AABA45 #45AABA
tetradic
#BA45AA #BA8F45 #45BA55 #4570BA
square
#BA45AA #BA8F45 #45BA55 #4570BA
split-complementary
#BA45AA #70BA45 #45BA8F
monochromatic
#612458 #8D3481 #BA45AA #CB72BE #DB9ED3

Accessibility & contrast

On white

4.65
#BA45AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#BA45AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA45AA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45AA#FFFFFF#000000##FFFFFF
##BA45AA1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426AAD
Deuteranopia (green-blind)
#697BA7
Tritanopia (blue-blind)
#C24E71
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba45aa;
/* rgb */ color: rgb(186, 69, 170);
/* oklch */ color: oklch(58.5% 0.190 333.5);
Tailwind
colors: {
  custom: {
    50: '#d280c3',
    500: '#ba45aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba45aa;
$custom-light: #d280c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45aa",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 308.205,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.58511,
    "c": 0.18972,
    "h": 333.5
  },
  "luminance": 0.17598
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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