#BA46D8#BA46D8

#BA46D8 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.2% C 0.227 H 318.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA46D8
RGBrgb(186, 70, 216)
HSLhsl(288, 65%, 56%)
HSVhsv(288, 68%, 85%)
CMYKcmyk(13.9%, 67.6%, 0%, 15.3%)
CIE-LABlab(51.59, 66.49, -53.53)
CIE-LCHlch(51.59, 85.36, 321.16°)
OKLaboklab(61.16% 0.1704 -0.15)
OKLCHoklch(61.16% 0.227 318.6)
XYZxyz(34.8329, 19.7789, 66.9353)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46D8 #64D846
analogous
#7146D8 #BA46D8 #D846AD
triadic
#BA46D8 #D8BA46 #46D8BA
tetradic
#BA46D8 #D87146 #64D846 #46ADD8
square
#BA46D8 #D87146 #64D846 #46ADD8
split-complementary
#BA46D8 #ADD846 #46D871
monochromatic
#711C87 #9C27BA #BA46D8 #CD79E3 #E0ABED

Accessibility & contrast

On white

4.24
#BA46D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#BA46D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46D8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46D8#FFFFFF#000000##000000
##BA46D81.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#4E7FD5
Tritanopia (blue-blind)
#BA618A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba46d8;
/* rgb */ color: rgb(186, 70, 216);
/* oklch */ color: oklch(61.2% 0.227 318.6);
Tailwind
colors: {
  custom: {
    50: '#d282e5',
    500: '#ba46d8',
    950: '#000000',
  },
}
SCSS
$custom: #ba46d8;
$custom-light: #d282e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46d8",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 216
  },
  "hsl": {
    "h": 287.671,
    "s": 65.179,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61162,
    "c": 0.22703,
    "h": 318.6
  },
  "luminance": 0.19777
}

Semantic roles & 50–950 ramp

primary
#BA46D8
secondary
#ABDB9F
accent
#E84062
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA46D8

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

Preview Lab → · Contrast checker → · Palette generator →

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