#BA52EC#BA52EC

#BA52EC is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 63.7% C 0.230 H 312.8°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA52EC
RGBrgb(186, 82, 236)
HSLhsl(281, 80%, 62%)
HSVhsv(281, 65%, 93%)
CMYKcmyk(21.2%, 65.3%, 0%, 7.5%)
CIE-LABlab(54.59, 65.40, -60.02)
CIE-LCHlch(54.59, 88.76, 317.46°)
OKLaboklab(63.7% 0.1565 -0.1691)
OKLCHoklch(63.7% 0.23 312.8)
XYZxyz(38.4046, 22.5309, 81.6664)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52EC #84EC52
analogous
#6D52EC #BA52EC #EC52D1
triadic
#BA52EC #ECBA52 #52ECBA
tetradic
#BA52EC #EC6D52 #84EC52 #52D1EC
square
#BA52EC #EC6D52 #84EC52 #52D1EC
split-complementary
#BA52EC #D1EC52 #52EC6D
monochromatic
#7D13B0 #A41BE6 #BA52EC #D089F2 #E6C0F8

Accessibility & contrast

On white

3.81
#BA52EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#BA52EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52EC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52EC#FFFFFF#000000##000000
##BA52EC1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#4685E8
Tritanopia (blue-blind)
#B57198
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba52ec;
/* rgb */ color: rgb(186, 82, 236);
/* oklch */ color: oklch(63.7% 0.230 312.8);
Tailwind
colors: {
  custom: {
    50: '#d389f3',
    500: '#ba52ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba52ec;
$custom-light: #d389f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52ec",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 280.519,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.637,
    "c": 0.23037,
    "h": 312.8
  },
  "luminance": 0.2253
}

Semantic roles & 50–950 ramp

primary
#BA52EC
secondary
#C3E9B1
accent
#DD094E
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA52EC

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

Preview Lab → · Contrast checker → · Palette generator →

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