#BA52E4#BA52E4

#BA52E4 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.2% C 0.223 H 314.8°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#BA52E4
RGBrgb(186, 82, 228)
HSLhsl(283, 73%, 61%)
HSVhsv(283, 64%, 89%)
CMYKcmyk(18.4%, 64%, 0%, 10.6%)
CIE-LABlab(54.11, 63.77, -56.29)
CIE-LCHlch(54.11, 85.06, 318.57°)
OKLaboklab(63.2% 0.1569 -0.1581)
OKLCHoklch(63.2% 0.223 314.8)
XYZxyz(37.2683, 22.0764, 75.6817)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52E4 #7CE452
analogous
#7152E4 #BA52E4 #E452C5
triadic
#BA52E4 #E4BA52 #52E4BA
tetradic
#BA52E4 #E47152 #7CE452 #52C5E4
square
#BA52E4 #E47152 #7CE452 #52C5E4
split-complementary
#BA52E4 #C5E452 #52E471
monochromatic
#7B19A2 #A322D7 #BA52E4 #CF87EC #E4BCF5

Accessibility & contrast

On white

3.88
#BA52E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#BA52E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52E4
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52E4#FFFFFF#000000##000000
##BA52E41.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F7BE8
Deuteranopia (green-blind)
#4E84E1
Tritanopia (blue-blind)
#B76E94
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba52e4;
/* rgb */ color: rgb(186, 82, 228);
/* oklch */ color: oklch(63.2% 0.223 314.8);
Tailwind
colors: {
  custom: {
    50: '#d289ed',
    500: '#ba52e4',
    950: '#000000',
  },
}
SCSS
$custom: #ba52e4;
$custom-light: #d289ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52e4",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 282.74,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.63203,
    "c": 0.22273,
    "h": 314.8
  },
  "luminance": 0.22075
}

Semantic roles & 50–950 ramp

primary
#BA52E4
secondary
#BDE5AD
accent
#D51049
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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