#BA52F5#BA52F5

#BA52F5 is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 64.3% C 0.239 H 310.7°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#BA52F5
RGBrgb(186, 82, 245)
HSLhsl(278, 89%, 64%)
HSVhsv(278, 67%, 96%)
CMYKcmyk(24.1%, 66.5%, 0%, 3.9%)
CIE-LABlab(55.14, 67.25, -64.15)
CIE-LCHlch(55.14, 92.94, 316.35°)
OKLaboklab(64.28% 0.1558 -0.1812)
OKLCHoklch(64.28% 0.239 310.7)
XYZxyz(39.7453, 23.0672, 88.7272)
Luminance0.2307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52F5 #8DF552
analogous
#6952F5 #BA52F5 #F552DF
triadic
#BA52F5 #F5BA52 #52F5BA
tetradic
#BA52F5 #F56952 #8DF552 #52DFF5
square
#BA52F5 #F56952 #8DF552 #52DFF5
split-complementary
#BA52F5 #DFF552 #52F569
monochromatic
#7F0BC1 #A318F2 #BA52F5 #D18CF8 #E8C6FC

Accessibility & contrast

On white

3.74
#BA52F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#BA52F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52F5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52F5#FFFFFF#000000##000000
##BA52F51.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFA
Deuteranopia (green-blind)
#3C86F1
Tritanopia (blue-blind)
#B2749D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba52f5;
/* rgb */ color: rgb(186, 82, 245);
/* oklch */ color: oklch(64.3% 0.239 310.7);
Tailwind
colors: {
  custom: {
    50: '#d38af9',
    500: '#ba52f5',
    950: '#000000',
  },
}
SCSS
$custom: #ba52f5;
$custom-light: #d38af9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52f5",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 245
  },
  "hsl": {
    "h": 278.282,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64276,
    "c": 0.239,
    "h": 310.7
  },
  "luminance": 0.23066
}

Semantic roles & 50–950 ramp

primary
#BA52F5
secondary
#CAEEB5
accent
#E60053
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA52F5

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

Preview Lab → · Contrast checker → · Palette generator →

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