#BA45AC#BA45AC

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

Color values

HEX#BA45AC
RGBrgb(186, 69, 172)
HSLhsl(307, 46%, 50%)
HSVhsv(307, 63%, 73%)
CMYKcmyk(0%, 62.9%, 7.5%, 27.1%)
CIE-LABlab(49.10, 59.16, -32.02)
CIE-LCHlch(49.10, 67.27, 331.58°)
OKLaboklab(58.61% 0.17 -0.0876)
OKLCHoklch(58.61% 0.191 332.7)
XYZxyz(29.8243, 17.6762, 40.8628)
Luminance0.1767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45AC #45BA53
analogous
#8D45BA #BA45AC #BA4572
triadic
#BA45AC #ACBA45 #45ACBA
tetradic
#BA45AC #BA8D45 #45BA53 #4572BA
square
#BA45AC #BA8D45 #45BA53 #4572BA
split-complementary
#BA45AC #72BA45 #45BA8D
monochromatic
#612459 #8D3483 #BA45AC #CB72C0 #DB9ED4

Accessibility & contrast

On white

4.63
#BA45AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA45AC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45AC#FFFFFF#000000##FFFFFF
##BA45AC1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416AAF
Deuteranopia (green-blind)
#687BA9
Tritanopia (blue-blind)
#C24F72
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba45ac;
/* rgb */ color: rgb(186, 69, 172);
/* oklch */ color: oklch(58.6% 0.191 332.7);
Tailwind
colors: {
  custom: {
    50: '#d280c5',
    500: '#ba45ac',
    950: '#000000',
  },
}
SCSS
$custom: #ba45ac;
$custom-light: #d280c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45ac",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 307.179,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.5861,
    "c": 0.19127,
    "h": 332.7
  },
  "luminance": 0.17674
}

Semantic roles & 50–950 ramp

primary
#BA45AC
secondary
#93C899
accent
#D66252
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA45AC

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

Preview Lab → · Contrast checker → · Palette generator →

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