#BA4AFA#BA4AFA

#BA4AFA is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.8% C 0.253 H 310.2°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#BA4AFA
RGBrgb(186, 74, 250)
HSLhsl(278, 95%, 64%)
HSVhsv(278, 70%, 98%)
CMYKcmyk(25.6%, 70.4%, 0%, 2%)
CIE-LABlab(54.28, 71.61, -68.32)
CIE-LCHlch(54.28, 98.97, 316.34°)
OKLaboklab(63.76% 0.1633 -0.1934)
OKLCHoklch(63.76% 0.253 310.2)
XYZxyz(39.9504, 22.2397, 92.6121)
Luminance0.2224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4AFA #8AFA4A
analogous
#624AFA #BA4AFA #FA4AE2
triadic
#BA4AFA #FABA4A #4AFABA
tetradic
#BA4AFA #FA624A #8AFA4A #4AE2FA
square
#BA4AFA #FA624A #8AFA4A #4AE2FA
split-complementary
#BA4AFA #E2FA4A #4AFA62
monochromatic
#7F05C4 #A30EF8 #BA4AFA #D186FC #E7C1FD

Accessibility & contrast

On white

3.85
#BA4AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#BA4AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4AFA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4AFA#FFFFFF#000000##000000
##BA4AFA1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFF
Deuteranopia (green-blind)
#2884F6
Tritanopia (blue-blind)
#B1719E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba4afa;
/* rgb */ color: rgb(186, 74, 250);
/* oklch */ color: oklch(63.8% 0.253 310.2);
Tailwind
colors: {
  custom: {
    50: '#d486fd',
    500: '#ba4afa',
    950: '#000000',
  },
}
SCSS
$custom: #ba4afa;
$custom-light: #d486fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4afa",
  "rgb": {
    "r": 186,
    "g": 74,
    "b": 250
  },
  "hsl": {
    "h": 278.182,
    "s": 94.624,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63764,
    "c": 0.25314,
    "h": 310.2
  },
  "luminance": 0.22239
}

Semantic roles & 50–950 ramp

primary
#BA4AFA
secondary
#C7EFB1
accent
#E60053
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #BA4AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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