#BA46E4#BA46E4

#BA46E4 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.9% C 0.238 H 315.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA46E4
RGBrgb(186, 70, 228)
HSLhsl(284, 75%, 58%)
HSVhsv(284, 69%, 89%)
CMYKcmyk(18.4%, 69.3%, 0%, 10.6%)
CIE-LABlab(52.31, 68.79, -59.17)
CIE-LCHlch(52.31, 90.74, 319.30°)
OKLaboklab(61.91% 0.1696 -0.1665)
OKLCHoklch(61.91% 0.238 315.5)
XYZxyz(36.4412, 20.4222, 75.4060)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46E4 #70E446
analogous
#6B46E4 #BA46E4 #E446BF
triadic
#BA46E4 #E4BA46 #46E4BA
tetradic
#BA46E4 #E46B46 #70E446 #46BFE4
square
#BA46E4 #E46B46 #70E446 #46BFE4
split-complementary
#BA46E4 #BFE446 #46E46B
monochromatic
#761699 #A01ECF #BA46E4 #CE7BEC #E2B1F4

Accessibility & contrast

On white

4.13
#BA46E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#BA46E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46E4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46E4#FFFFFF#000000##000000
##BA46E41.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#4380E0
Tritanopia (blue-blind)
#B76690
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba46e4;
/* rgb */ color: rgb(186, 70, 228);
/* oklch */ color: oklch(61.9% 0.238 315.5);
Tailwind
colors: {
  custom: {
    50: '#d383ed',
    500: '#ba46e4',
    950: '#000000',
  },
}
SCSS
$custom: #ba46e4;
$custom-light: #d383ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46e4",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 228
  },
  "hsl": {
    "h": 284.051,
    "s": 74.528,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61913,
    "c": 0.23771,
    "h": 315.5
  },
  "luminance": 0.20421
}

Semantic roles & 50–950 ramp

primary
#BA46E4
secondary
#B4E2A4
accent
#F13768
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA46E4

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

Preview Lab → · Contrast checker → · Palette generator →

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