#BA46CE#BA46CE

#BA46CE is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.6% C 0.218 H 321.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA46CE
RGBrgb(186, 70, 206)
HSLhsl(291, 58%, 54%)
HSVhsv(291, 66%, 81%)
CMYKcmyk(9.7%, 66%, 0%, 19.2%)
CIE-LABlab(51.01, 64.63, -48.74)
CIE-LCHlch(51.01, 80.94, 322.98°)
OKLaboklab(60.56% 0.1707 -0.136)
OKLCHoklch(60.56% 0.218 321.5)
XYZxyz(33.5792, 19.2774, 60.3327)
Luminance0.1928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46CE #5ACE46
analogous
#7646CE #BA46CE #CE469E
triadic
#BA46CE #CEBA46 #46CEBA
tetradic
#BA46CE #CE7646 #5ACE46 #469ECE
square
#BA46CE #CE7646 #5ACE46 #469ECE
split-complementary
#BA46CE #9ECE46 #46CE76
monochromatic
#6C2079 #972DAA #BA46CE #CC76DB #DEA7E8

Accessibility & contrast

On white

4.33
#BA46CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#BA46CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46CE
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46CE#FFFFFF#000000##000000
##BA46CE1.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E71D2
Deuteranopia (green-blind)
#567ECB
Tritanopia (blue-blind)
#BC5D84
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba46ce;
/* rgb */ color: rgb(186, 70, 206);
/* oklch */ color: oklch(60.6% 0.218 321.5);
Tailwind
colors: {
  custom: {
    50: '#d282dd',
    500: '#ba46ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba46ce;
$custom-light: #d282dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46ce",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 206
  },
  "hsl": {
    "h": 291.176,
    "s": 58.12,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60563,
    "c": 0.21824,
    "h": 321.5
  },
  "luminance": 0.19276
}

Semantic roles & 50–950 ramp

primary
#BA46CE
secondary
#A3D59B
accent
#E1465D
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA46CE

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

Preview Lab → · Contrast checker → · Palette generator →

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