#BA45A5#BA45A5

#BA45A5 is a mid, vivid pink. Relative luminance 0.174; OKLCH L 58.3% C 0.186 H 335.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BA45A5
RGBrgb(186, 69, 165)
HSLhsl(311, 46%, 50%)
HSVhsv(311, 63%, 73%)
CMYKcmyk(0%, 62.9%, 11.3%, 27.1%)
CIE-LABlab(48.78, 58.05, -28.40)
CIE-LCHlch(48.78, 64.62, 333.93°)
OKLaboklab(58.27% 0.1691 -0.0772)
OKLCHoklch(58.27% 0.186 335.5)
XYZxyz(29.1696, 17.4143, 37.4150)
Luminance0.1741 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45A5 #45BA5A
analogous
#9445BA #BA45A5 #BA456B
triadic
#BA45A5 #A5BA45 #45A5BA
tetradic
#BA45A5 #BA9445 #45BA5A #456BBA
square
#BA45A5 #BA9445 #45BA5A #456BBA
split-complementary
#BA45A5 #6BBA45 #45BA94
monochromatic
#612456 #8D347D #BA45A5 #CB72BB #DB9ED0

Accessibility & contrast

On white

4.68
#BA45A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#BA45A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA45A5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45A5#FFFFFF#000000##FFFFFF
##BA45A51.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4569A8
Deuteranopia (green-blind)
#6B7AA2
Tritanopia (blue-blind)
#C34C6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba45a5;
/* rgb */ color: rgb(186, 69, 165);
/* oklch */ color: oklch(58.3% 0.186 335.5);
Tailwind
colors: {
  custom: {
    50: '#d280c0',
    500: '#ba45a5',
    950: '#000000',
  },
}
SCSS
$custom: #ba45a5;
$custom-light: #d280c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45a5",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 310.769,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.58269,
    "c": 0.18591,
    "h": 335.5
  },
  "luminance": 0.17412
}

Semantic roles & 50–950 ramp

primary
#BA45A5
secondary
#93C89D
accent
#D66A52
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA45A5

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

Preview Lab → · Contrast checker → · Palette generator →

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