#BA52E7#BA52E7

#BA52E7 is a light, highly saturated purple. Relative luminance 0.222; OKLCH L 63.4% C 0.226 H 314.0°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#BA52E7
RGBrgb(186, 82, 231)
HSLhsl(282, 76%, 61%)
HSVhsv(282, 65%, 91%)
CMYKcmyk(19.5%, 64.5%, 0%, 9.4%)
CIE-LABlab(54.29, 64.38, -57.69)
CIE-LCHlch(54.29, 86.45, 318.14°)
OKLaboklab(63.39% 0.1567 -0.1623)
OKLCHoklch(63.39% 0.226 314)
XYZxyz(37.6884, 22.2444, 77.8941)
Luminance0.2224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52E7 #7FE752
analogous
#7052E7 #BA52E7 #E752CA
triadic
#BA52E7 #E7BA52 #52E7BA
tetradic
#BA52E7 #E77052 #7FE752 #52CAE7
square
#BA52E7 #E77052 #7FE752 #52CAE7
split-complementary
#BA52E7 #CAE752 #52E770
monochromatic
#7C17A7 #A41FDD #BA52E7 #CF88EE #E5BDF6

Accessibility & contrast

On white

3.85
#BA52E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#BA52E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52E7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52E7#FFFFFF#000000##000000
##BA52E71.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEB
Deuteranopia (green-blind)
#4B84E4
Tritanopia (blue-blind)
#B66F96
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba52e7;
/* rgb */ color: rgb(186, 82, 231);
/* oklch */ color: oklch(63.4% 0.226 314.0);
Tailwind
colors: {
  custom: {
    50: '#d389ef',
    500: '#ba52e7',
    950: '#000000',
  },
}
SCSS
$custom: #ba52e7;
$custom-light: #d389ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52e7",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 281.879,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.63387,
    "c": 0.22559,
    "h": 314
  },
  "luminance": 0.22243
}

Semantic roles & 50–950 ramp

primary
#BA52E7
secondary
#BFE6AF
accent
#D80E4B
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA52E7

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

Preview Lab → · Contrast checker → · Palette generator →

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