#BA52FF#BA52FF

#BA52FF is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.9% C 0.249 H 308.5°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#BA52FF
RGBrgb(186, 82, 255)
HSLhsl(276, 100%, 66%)
HSVhsv(276, 68%, 100%)
CMYKcmyk(27.1%, 67.8%, 0%, 0%)
CIE-LABlab(55.78, 69.35, -68.67)
CIE-LCHlch(55.78, 97.60, 315.28°)
OKLaboklab(64.94% 0.1549 -0.1945)
OKLCHoklch(64.94% 0.249 308.5)
XYZxyz(41.3133, 23.6944, 96.9854)
Luminance0.2369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52FF #97FF52
analogous
#6352FF #BA52FF #FF52EE
triadic
#BA52FF #FFBA52 #52FFBA
tetradic
#BA52FF #FF6352 #97FF52 #52EEFF
square
#BA52FF #FF6352 #97FF52 #52EEFF
split-complementary
#BA52FF #EEFF52 #52FF63
monochromatic
#8100D7 #A215FF #BA52FF #D28FFF #EBCCFF

Accessibility & contrast

On white

3.66
#BA52FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#BA52FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52FF
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52FF#FFFFFF#000000##000000
##BA52FF1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FF
Deuteranopia (green-blind)
#2C87FB
Tritanopia (blue-blind)
#AF78A3
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba52ff;
/* rgb */ color: rgb(186, 82, 255);
/* oklch */ color: oklch(64.9% 0.249 308.5);
Tailwind
colors: {
  custom: {
    50: '#d48aff',
    500: '#ba52ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba52ff;
$custom-light: #d48aff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52ff",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 255
  },
  "hsl": {
    "h": 276.069,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64936,
    "c": 0.2486,
    "h": 308.5
  },
  "luminance": 0.23694
}

Semantic roles & 50–950 ramp

primary
#BA52FF
secondary
#D1F3BA
accent
#E6005C
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #BA52FF

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

Preview Lab → · Contrast checker → · Palette generator →

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