#BA46DC#BA46DC

#BA46DC is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.4% C 0.231 H 317.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BA46DC
RGBrgb(186, 70, 220)
HSLhsl(286, 68%, 57%)
HSVhsv(286, 68%, 86%)
CMYKcmyk(15.5%, 68.2%, 0%, 13.7%)
CIE-LABlab(51.82, 67.25, -55.42)
CIE-LCHlch(51.82, 87.14, 320.51°)
OKLaboklab(61.41% 0.1702 -0.1555)
OKLCHoklch(61.41% 0.231 317.6)
XYZxyz(35.3563, 19.9882, 69.6920)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46DC #68DC46
analogous
#6F46DC #BA46DC #DC46B3
triadic
#BA46DC #DCBA46 #46DCBA
tetradic
#BA46DC #DC6F46 #68DC46 #46B3DC
square
#BA46DC #DC6F46 #68DC46 #46B3DC
split-complementary
#BA46DC #B3DC46 #46DC6F
monochromatic
#731B8D #9D24C0 #BA46DC #CD79E6 #E0ADEF

Accessibility & contrast

On white

4.20
#BA46DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#BA46DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46DC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46DC#FFFFFF#000000##000000
##BA46DC1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E0
Deuteranopia (green-blind)
#4B7FD8
Tritanopia (blue-blind)
#B9638C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba46dc;
/* rgb */ color: rgb(186, 70, 220);
/* oklch */ color: oklch(61.4% 0.231 317.6);
Tailwind
colors: {
  custom: {
    50: '#d382e7',
    500: '#ba46dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba46dc;
$custom-light: #d382e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46dc",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 220
  },
  "hsl": {
    "h": 286.4,
    "s": 68.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61409,
    "c": 0.23057,
    "h": 317.6
  },
  "luminance": 0.19987
}

Semantic roles & 50–950 ramp

primary
#BA46DC
secondary
#AEDDA0
accent
#EB3D64
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA46DC

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

Preview Lab → · Contrast checker → · Palette generator →

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