#BA45A7#BA45A7

#BA45A7 is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.4% C 0.187 H 334.7°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#BA45A7
RGBrgb(186, 69, 167)
HSLhsl(310, 46%, 50%)
HSVhsv(310, 63%, 73%)
CMYKcmyk(0%, 62.9%, 10.2%, 27.1%)
CIE-LABlab(48.87, 58.36, -29.44)
CIE-LCHlch(48.87, 65.37, 333.23°)
OKLaboklab(58.37% 0.1694 -0.0802)
OKLCHoklch(58.37% 0.187 334.7)
XYZxyz(29.3531, 17.4877, 38.3812)
Luminance0.1749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45A7 #45BA58
analogous
#9345BA #BA45A7 #BA456C
triadic
#BA45A7 #A7BA45 #45A7BA
tetradic
#BA45A7 #BA9345 #45BA58 #456CBA
square
#BA45A7 #BA9345 #45BA58 #456CBA
split-complementary
#BA45A7 #6CBA45 #45BA93
monochromatic
#612457 #8D347F #BA45A7 #CB72BC #DB9ED1

Accessibility & contrast

On white

4.67
#BA45A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#BA45A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA45A7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45A7#FFFFFF#000000##FFFFFF
##BA45A71.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4469AA
Deuteranopia (green-blind)
#6A7AA4
Tritanopia (blue-blind)
#C34D70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba45a7;
/* rgb */ color: rgb(186, 69, 167);
/* oklch */ color: oklch(58.4% 0.187 334.7);
Tailwind
colors: {
  custom: {
    50: '#d280c1',
    500: '#ba45a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba45a7;
$custom-light: #d280c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45a7",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 167
  },
  "hsl": {
    "h": 309.744,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.58365,
    "c": 0.18742,
    "h": 334.7
  },
  "luminance": 0.17485
}

Semantic roles & 50–950 ramp

primary
#BA45A7
secondary
#93C89C
accent
#D66852
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA45A7

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

Preview Lab → · Contrast checker → · Palette generator →

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