#BA46D2#BA46D2

#BA46D2 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.8% C 0.222 H 320.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA46D2
RGBrgb(186, 70, 210)
HSLhsl(290, 61%, 55%)
HSVhsv(290, 67%, 82%)
CMYKcmyk(11.4%, 66.7%, 0%, 17.6%)
CIE-LABlab(51.24, 65.37, -50.66)
CIE-LCHlch(51.24, 82.70, 322.22°)
OKLaboklab(60.8% 0.1706 -0.1416)
OKLCHoklch(60.8% 0.222 320.3)
XYZxyz(34.0713, 19.4742, 62.9245)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46D2 #5ED246
analogous
#7446D2 #BA46D2 #D246A4
triadic
#BA46D2 #D2BA46 #46D2BA
tetradic
#BA46D2 #D27446 #5ED246 #46A4D2
square
#BA46D2 #D27446 #5ED246 #46A4D2
split-complementary
#BA46D2 #A4D246 #46D274
monochromatic
#6E1F7F #992BB0 #BA46D2 #CC77DE #DFA8EA

Accessibility & contrast

On white

4.29
#BA46D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#BA46D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46D2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46D2#FFFFFF#000000##000000
##BA46D21.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1472D6
Deuteranopia (green-blind)
#537ECF
Tritanopia (blue-blind)
#BB5F87
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba46d2;
/* rgb */ color: rgb(186, 70, 210);
/* oklch */ color: oklch(60.8% 0.222 320.3);
Tailwind
colors: {
  custom: {
    50: '#d282e0',
    500: '#ba46d2',
    950: '#000000',
  },
}
SCSS
$custom: #ba46d2;
$custom-light: #d282e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46d2",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 210
  },
  "hsl": {
    "h": 289.714,
    "s": 60.87,
    "l": 54.902
  },
  "oklch": {
    "l": 0.608,
    "c": 0.22174,
    "h": 320.3
  },
  "luminance": 0.19473
}

Semantic roles & 50–950 ramp

primary
#BA46D2
secondary
#A7D79C
accent
#E4445F
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA46D2

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

Preview Lab → · Contrast checker → · Palette generator →

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