#BA4FF5#BA4FF5

#BA4FF5 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.9% C 0.243 H 310.9°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#BA4FF5
RGBrgb(186, 79, 245)
HSLhsl(279, 89%, 64%)
HSVhsv(279, 68%, 96%)
CMYKcmyk(24.1%, 67.8%, 0%, 3.9%)
CIE-LABlab(54.68, 68.53, -64.89)
CIE-LCHlch(54.68, 94.38, 316.56°)
OKLaboklab(63.95% 0.159 -0.1834)
OKLCHoklch(63.95% 0.243 310.9)
XYZxyz(39.5240, 22.6246, 88.6534)
Luminance0.2262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FF5 #8AF54F
analogous
#674FF5 #BA4FF5 #F54FDD
triadic
#BA4FF5 #F5BA4F #4FF5BA
tetradic
#BA4FF5 #F5674F #8AF54F #4FDDF5
square
#BA4FF5 #F5674F #8AF54F #4FDDF5
split-complementary
#BA4FF5 #DDF54F #4FF567
monochromatic
#7F0BBF #A315F2 #BA4FF5 #D189F8 #E7C3FC

Accessibility & contrast

On white

3.80
#BA4FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#BA4FF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FF5
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FF5#FFFFFF#000000##000000
##BA4FF51.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFA
Deuteranopia (green-blind)
#3885F1
Tritanopia (blue-blind)
#B2729C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba4ff5;
/* rgb */ color: rgb(186, 79, 245);
/* oklch */ color: oklch(63.9% 0.243 310.9);
Tailwind
colors: {
  custom: {
    50: '#d388f9',
    500: '#ba4ff5',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ff5;
$custom-light: #d388f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ff5",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 245
  },
  "hsl": {
    "h": 278.675,
    "s": 89.247,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63948,
    "c": 0.24266,
    "h": 310.9
  },
  "luminance": 0.22624
}

Semantic roles & 50–950 ramp

primary
#BA4FF5
secondary
#C7EDB2
accent
#E60052
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA4FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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