#BA46D7#BA46D7

#BA46D7 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.1% C 0.226 H 318.9°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA46D7
RGBrgb(186, 70, 215)
HSLhsl(288, 64%, 56%)
HSVhsv(288, 67%, 84%)
CMYKcmyk(13.5%, 67.4%, 0%, 15.7%)
CIE-LABlab(51.53, 66.30, -53.05)
CIE-LCHlch(51.53, 84.92, 321.33°)
OKLaboklab(61.1% 0.1705 -0.1486)
OKLCHoklch(61.1% 0.226 318.9)
XYZxyz(34.7040, 19.7273, 66.2565)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46D7 #63D746
analogous
#7146D7 #BA46D7 #D746AB
triadic
#BA46D7 #D7BA46 #46D7BA
tetradic
#BA46D7 #D77146 #63D746 #46ABD7
square
#BA46D7 #D77146 #63D746 #46ABD7
split-complementary
#BA46D7 #ABD746 #46D771
monochromatic
#711D86 #9B28B8 #BA46D7 #CD78E2 #E0ABED

Accessibility & contrast

On white

4.25
#BA46D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#BA46D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46D7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46D7#FFFFFF#000000##000000
##BA46D71.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DB
Deuteranopia (green-blind)
#4F7FD4
Tritanopia (blue-blind)
#BA6189
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba46d7;
/* rgb */ color: rgb(186, 70, 215);
/* oklch */ color: oklch(61.1% 0.226 318.9);
Tailwind
colors: {
  custom: {
    50: '#d282e4',
    500: '#ba46d7',
    950: '#000000',
  },
}
SCSS
$custom: #ba46d7;
$custom-light: #d282e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46d7",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 215
  },
  "hsl": {
    "h": 288,
    "s": 64.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61101,
    "c": 0.22614,
    "h": 318.9
  },
  "luminance": 0.19726
}

Semantic roles & 50–950 ramp

primary
#BA46D7
secondary
#AADA9E
accent
#E74062
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA46D7

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

Preview Lab → · Contrast checker → · Palette generator →

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