#BA5EF1#BA5EF1

#BA5EF1 is a light, highly saturated violet. Relative luminance 0.248; OKLCH L 65.5% C 0.219 H 310.6°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#BA5EF1
RGBrgb(186, 94, 241)
HSLhsl(278, 84%, 66%)
HSVhsv(278, 61%, 95%)
CMYKcmyk(22.8%, 61%, 0%, 5.5%)
CIE-LABlab(56.88, 60.97, -59.14)
CIE-LCHlch(56.88, 84.94, 315.87°)
OKLaboklab(65.45% 0.1427 -0.1665)
OKLCHoklch(65.45% 0.219 310.6)
XYZxyz(40.1266, 24.7962, 85.8744)
Luminance0.2480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EF1 #95F15E
analogous
#705EF1 #BA5EF1 #F15EDE
triadic
#BA5EF1 #F1BA5E #5EF1BA
tetradic
#BA5EF1 #F1705E #95F15E #5EDEF1
square
#BA5EF1 #F1705E #95F15E #5EDEF1
split-complementary
#BA5EF1 #DEF15E #5EF170
monochromatic
#8111C4 #A226EC #BA5EF1 #D296F6 #EACFFB

Accessibility & contrast

On white

3.52
#BA5EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#BA5EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EF1
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EF1#FFFFFF#000000##000000
##BA5EF11.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D84F6
Deuteranopia (green-blind)
#4E8AEE
Tritanopia (blue-blind)
#B37A9F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5ef1;
/* rgb */ color: rgb(186, 94, 241);
/* oklch */ color: oklch(65.5% 0.219 310.6);
Tailwind
colors: {
  custom: {
    50: '#d290f6',
    500: '#ba5ef1',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ef1;
$custom-light: #d290f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ef1",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 277.551,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.6545,
    "c": 0.21932,
    "h": 310.6
  },
  "luminance": 0.24795
}

Semantic roles & 50–950 ramp

primary
#BA5EF1
secondary
#CFEEBD
accent
#E00557
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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