#BA52F4#BA52F4

#BA52F4 is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 64.2% C 0.238 H 310.9°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#BA52F4
RGBrgb(186, 82, 244)
HSLhsl(279, 88%, 64%)
HSVhsv(279, 66%, 96%)
CMYKcmyk(23.8%, 66.4%, 0%, 4.3%)
CIE-LABlab(55.08, 67.05, -63.69)
CIE-LCHlch(55.08, 92.48, 316.47°)
OKLaboklab(64.21% 0.1559 -0.1799)
OKLCHoklch(64.21% 0.238 310.9)
XYZxyz(39.5930, 23.0063, 87.9254)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52F4 #8CF452
analogous
#6952F4 #BA52F4 #F452DD
triadic
#BA52F4 #F4BA52 #52F4BA
tetradic
#BA52F4 #F46952 #8CF452 #52DDF4
square
#BA52F4 #F46952 #8CF452 #52DDF4
split-complementary
#BA52F4 #DDF452 #52F469
monochromatic
#7F0CBF #A318F0 #BA52F4 #D18CF8 #E8C5FB

Accessibility & contrast

On white

3.75
#BA52F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#BA52F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52F4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52F4#FFFFFF#000000##000000
##BA52F41.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF9
Deuteranopia (green-blind)
#3D86F0
Tritanopia (blue-blind)
#B3749D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba52f4;
/* rgb */ color: rgb(186, 82, 244);
/* oklch */ color: oklch(64.2% 0.238 310.9);
Tailwind
colors: {
  custom: {
    50: '#d38af9',
    500: '#ba52f4',
    950: '#000000',
  },
}
SCSS
$custom: #ba52f4;
$custom-light: #d38af9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52f4",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 244
  },
  "hsl": {
    "h": 278.519,
    "s": 88.043,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64211,
    "c": 0.23804,
    "h": 310.9
  },
  "luminance": 0.23005
}

Semantic roles & 50–950 ramp

primary
#BA52F4
secondary
#C9EDB4
accent
#E50152
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA52F4

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

Preview Lab → · Contrast checker → · Palette generator →

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