#BA46AB#BA46AB

#BA46AB is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.7% C 0.189 H 333.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA46AB
RGBrgb(186, 70, 171)
HSLhsl(308, 46%, 50%)
HSVhsv(308, 62%, 73%)
CMYKcmyk(0%, 62.4%, 8.1%, 27.1%)
CIE-LABlab(49.21, 58.58, -31.27)
CIE-LCHlch(49.21, 66.40, 331.91°)
OKLaboklab(58.67% 0.1687 -0.0854)
OKLCHoklch(58.67% 0.189 333.1)
XYZxyz(29.7906, 17.7620, 40.3795)
Luminance0.1776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46AB #46BA55
analogous
#8F46BA #BA46AB #BA4671
triadic
#BA46AB #ABBA46 #46ABBA
tetradic
#BA46AB #BA8F46 #46BA55 #4671BA
square
#BA46AB #BA8F46 #46BA55 #4671BA
split-complementary
#BA46AB #71BA46 #46BA8F
monochromatic
#612459 #8E3582 #BA46AB #CB73BF #DB9FD3

Accessibility & contrast

On white

4.61
#BA46AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#BA46AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA46AB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46AB#FFFFFF#000000##FFFFFF
##BA46AB1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436AAE
Deuteranopia (green-blind)
#697BA8
Tritanopia (blue-blind)
#C24F72
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba46ab;
/* rgb */ color: rgb(186, 70, 171);
/* oklch */ color: oklch(58.7% 0.189 333.1);
Tailwind
colors: {
  custom: {
    50: '#d281c4',
    500: '#ba46ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba46ab;
$custom-light: #d281c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46ab",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 171
  },
  "hsl": {
    "h": 307.759,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58671,
    "c": 0.18909,
    "h": 333.1
  },
  "luminance": 0.1776
}

Semantic roles & 50–950 ramp

primary
#BA46AB
secondary
#94C89B
accent
#D56352
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA46AB

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

Preview Lab → · Contrast checker → · Palette generator →

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