#BA46D9#BA46D9

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

Color values

HEX#BA46D9
RGBrgb(186, 70, 217)
HSLhsl(287, 66%, 56%)
HSVhsv(287, 68%, 85%)
CMYKcmyk(14.3%, 67.7%, 0%, 14.9%)
CIE-LABlab(51.65, 66.68, -54.00)
CIE-LCHlch(51.65, 85.81, 321.00°)
OKLaboklab(61.22% 0.1704 -0.1514)
OKLCHoklch(61.22% 0.228 318.4)
XYZxyz(34.9625, 19.8307, 67.6183)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46D9 #65D946
analogous
#7146D9 #BA46D9 #D946AF
triadic
#BA46D9 #D9BA46 #46D9BA
tetradic
#BA46D9 #D97146 #65D946 #46AFD9
square
#BA46D9 #D97146 #65D946 #46AFD9
split-complementary
#BA46D9 #AFD946 #46D971
monochromatic
#721C89 #9C26BB #BA46D9 #CD79E3 #E0ACEE

Accessibility & contrast

On white

4.23
#BA46D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA46D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46D9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46D9#FFFFFF#000000##000000
##BA46D91.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DD
Deuteranopia (green-blind)
#4D7FD6
Tritanopia (blue-blind)
#B9628A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba46d9;
/* rgb */ color: rgb(186, 70, 217);
/* oklch */ color: oklch(61.2% 0.228 318.4);
Tailwind
colors: {
  custom: {
    50: '#d382e5',
    500: '#ba46d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba46d9;
$custom-light: #d382e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46d9",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 287.347,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61224,
    "c": 0.22791,
    "h": 318.4
  },
  "luminance": 0.19829
}

Semantic roles & 50–950 ramp

primary
#BA46D9
secondary
#ACDC9F
accent
#E93F63
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA46D9

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

Preview Lab → · Contrast checker → · Palette generator →

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