#BA46DB#BA46DB

#BA46DB is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.3% C 0.230 H 317.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA46DB
RGBrgb(186, 70, 219)
HSLhsl(287, 67%, 57%)
HSVhsv(287, 68%, 86%)
CMYKcmyk(15.1%, 68%, 0%, 14.1%)
CIE-LABlab(51.76, 67.06, -54.95)
CIE-LCHlch(51.76, 86.70, 320.67°)
OKLaboklab(61.35% 0.1703 -0.1542)
OKLCHoklch(61.35% 0.23 317.8)
XYZxyz(35.2242, 19.9354, 68.9966)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46DB #67DB46
analogous
#6F46DB #BA46DB #DB46B2
triadic
#BA46DB #DBBA46 #46DBBA
tetradic
#BA46DB #DB6F46 #67DB46 #46B2DB
square
#BA46DB #DB6F46 #67DB46 #46B2DB
split-complementary
#BA46DB #B2DB46 #46DB6F
monochromatic
#731B8B #9D25BF #BA46DB #CD79E5 #E0ACEF

Accessibility & contrast

On white

4.21
#BA46DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#BA46DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46DB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46DB#FFFFFF#000000##000000
##BA46DB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#4C7FD8
Tritanopia (blue-blind)
#B9628B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba46db;
/* rgb */ color: rgb(186, 70, 219);
/* oklch */ color: oklch(61.3% 0.230 317.8);
Tailwind
colors: {
  custom: {
    50: '#d382e7',
    500: '#ba46db',
    950: '#000000',
  },
}
SCSS
$custom: #ba46db;
$custom-light: #d382e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46db",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 286.711,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61347,
    "c": 0.22969,
    "h": 317.8
  },
  "luminance": 0.19934
}

Semantic roles & 50–950 ramp

primary
#BA46DB
secondary
#ADDDA0
accent
#EA3D64
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA46DB

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

Preview Lab → · Contrast checker → · Palette generator →

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