#BA52EF#BA52EF

#BA52EF is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.9% C 0.233 H 312.1°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#BA52EF
RGBrgb(186, 82, 239)
HSLhsl(280, 83%, 63%)
HSVhsv(280, 66%, 94%)
CMYKcmyk(22.2%, 65.7%, 0%, 6.3%)
CIE-LABlab(54.77, 66.01, -61.40)
CIE-LCHlch(54.77, 90.15, 317.07°)
OKLaboklab(63.89% 0.1563 -0.1731)
OKLCHoklch(63.89% 0.233 312.1)
XYZxyz(38.8442, 22.7067, 83.9812)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52EF #87EF52
analogous
#6B52EF #BA52EF #EF52D6
triadic
#BA52EF #EFBA52 #52EFBA
tetradic
#BA52EF #EF6B52 #87EF52 #52D6EF
square
#BA52EF #EF6B52 #87EF52 #52D6EF
split-complementary
#BA52EF #D6EF52 #52EF6B
monochromatic
#7E11B6 #A41AEA #BA52EF #D08AF4 #E7C2F9

Accessibility & contrast

On white

3.79
#BA52EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#BA52EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52EF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52EF#FFFFFF#000000##000000
##BA52EF1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF4
Deuteranopia (green-blind)
#4385EB
Tritanopia (blue-blind)
#B4729A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba52ef;
/* rgb */ color: rgb(186, 82, 239);
/* oklch */ color: oklch(63.9% 0.233 312.1);
Tailwind
colors: {
  custom: {
    50: '#d389f5',
    500: '#ba52ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba52ef;
$custom-light: #d389f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52ef",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 279.745,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.6389,
    "c": 0.23324,
    "h": 312.1
  },
  "luminance": 0.22706
}

Semantic roles & 50–950 ramp

primary
#BA52EF
secondary
#C5EBB2
accent
#DF064F
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA52EF

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

Preview Lab → · Contrast checker → · Palette generator →

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