#BA46E2#BA46E2

#BA46E2 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.8% C 0.236 H 316.0°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA46E2
RGBrgb(186, 70, 226)
HSLhsl(285, 73%, 58%)
HSVhsv(285, 69%, 89%)
CMYKcmyk(17.7%, 69%, 0%, 11.4%)
CIE-LABlab(52.19, 68.40, -58.24)
CIE-LCHlch(52.19, 89.84, 319.59°)
OKLaboklab(61.79% 0.1698 -0.1638)
OKLCHoklch(61.79% 0.236 316)
XYZxyz(36.1652, 20.3118, 73.9523)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46E2 #6EE246
analogous
#6C46E2 #BA46E2 #E246BC
triadic
#BA46E2 #E2BA46 #46E2BA
tetradic
#BA46E2 #E26C46 #6EE246 #46BCE2
square
#BA46E2 #E26C46 #6EE246 #46BCE2
split-complementary
#BA46E2 #BCE246 #46E26C
monochromatic
#761896 #9F20CB #BA46E2 #CE7BEA #E1B0F3

Accessibility & contrast

On white

4.15
#BA46E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#BA46E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46E2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46E2#FFFFFF#000000##000000
##BA46E21.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#4580DE
Tritanopia (blue-blind)
#B7658F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba46e2;
/* rgb */ color: rgb(186, 70, 226);
/* oklch */ color: oklch(61.8% 0.236 316.0);
Tailwind
colors: {
  custom: {
    50: '#d383ec',
    500: '#ba46e2',
    950: '#000000',
  },
}
SCSS
$custom: #ba46e2;
$custom-light: #d383ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46e2",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 226
  },
  "hsl": {
    "h": 284.615,
    "s": 72.897,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61786,
    "c": 0.23592,
    "h": 316
  },
  "luminance": 0.2031
}

Semantic roles & 50–950 ramp

primary
#BA46E2
secondary
#B3E1A3
accent
#F03867
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA46E2

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

Preview Lab → · Contrast checker → · Palette generator →

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