#BA52E6#BA52E6

#BA52E6 is a light, highly saturated purple. Relative luminance 0.222; OKLCH L 63.3% C 0.225 H 314.3°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#BA52E6
RGBrgb(186, 82, 230)
HSLhsl(282, 75%, 61%)
HSVhsv(282, 64%, 90%)
CMYKcmyk(19.1%, 64.3%, 0%, 9.8%)
CIE-LABlab(54.23, 64.18, -57.22)
CIE-LCHlch(54.23, 85.98, 318.28°)
OKLaboklab(63.33% 0.1568 -0.1609)
OKLCHoklch(63.33% 0.225 314.3)
XYZxyz(37.5475, 22.1881, 77.1524)
Luminance0.2219 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52E6 #7EE652
analogous
#7052E6 #BA52E6 #E652C8
triadic
#BA52E6 #E6BA52 #52E6BA
tetradic
#BA52E6 #E67052 #7EE652 #52C8E6
square
#BA52E6 #E67052 #7EE652 #52C8E6
split-complementary
#BA52E6 #C8E652 #52E670
monochromatic
#7C18A6 #A320DB #BA52E6 #CF87EE #E5BDF5

Accessibility & contrast

On white

3.86
#BA52E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#BA52E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52E6
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52E6#FFFFFF#000000##000000
##BA52E61.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#057CEA
Deuteranopia (green-blind)
#4C84E3
Tritanopia (blue-blind)
#B66E95
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba52e6;
/* rgb */ color: rgb(186, 82, 230);
/* oklch */ color: oklch(63.3% 0.225 314.3);
Tailwind
colors: {
  custom: {
    50: '#d289ef',
    500: '#ba52e6',
    950: '#000000',
  },
}
SCSS
$custom: #ba52e6;
$custom-light: #d289ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52e6",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 230
  },
  "hsl": {
    "h": 282.162,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.63325,
    "c": 0.22464,
    "h": 314.3
  },
  "luminance": 0.22187
}

Semantic roles & 50–950 ramp

primary
#BA52E6
secondary
#BFE6AE
accent
#D70F4A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA52E6

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

Preview Lab → · Contrast checker → · Palette generator →

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