#BA46C5#BA46C5

#BA46C5 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.0% C 0.210 H 324.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA46C5
RGBrgb(186, 70, 197)
HSLhsl(295, 52%, 52%)
HSVhsv(295, 64%, 77%)
CMYKcmyk(5.6%, 64.5%, 0%, 22.7%)
CIE-LABlab(50.51, 63.00, -44.35)
CIE-LCHlch(50.51, 77.04, 324.86°)
OKLaboklab(60.05% 0.1706 -0.1232)
OKLCHoklch(60.05% 0.21 324.2)
XYZxyz(32.5170, 18.8525, 54.7387)
Luminance0.1885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46C5 #51C546
analogous
#7A46C5 #BA46C5 #C54691
triadic
#BA46C5 #C5BA46 #46C5BA
tetradic
#BA46C5 #C57A46 #51C546 #4691C5
square
#BA46C5 #C57A46 #51C546 #4691C5
split-complementary
#BA46C5 #91C546 #46C57A
monochromatic
#68236E #93319D #BA46C5 #CB75D4 #DDA3E2

Accessibility & contrast

On white

4.40
#BA46C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#BA46C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46C5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46C5#FFFFFF#000000##000000
##BA46C51.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C6FC9
Deuteranopia (green-blind)
#5B7DC2
Tritanopia (blue-blind)
#BE5980
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba46c5;
/* rgb */ color: rgb(186, 70, 197);
/* oklch */ color: oklch(60.0% 0.210 324.2);
Tailwind
colors: {
  custom: {
    50: '#d282d7',
    500: '#ba46c5',
    950: '#000000',
  },
}
SCSS
$custom: #ba46c5;
$custom-light: #d282d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46c5",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 197
  },
  "hsl": {
    "h": 294.803,
    "s": 52.263,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60045,
    "c": 0.21046,
    "h": 324.2
  },
  "luminance": 0.18851
}

Semantic roles & 50–950 ramp

primary
#BA46C5
secondary
#9DCF98
accent
#DC4C59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #BA46C5

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

Preview Lab → · Contrast checker → · Palette generator →

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