#BA5EFA#BA5EFA

#BA5EFA is a light, highly saturated violet. Relative luminance 0.253; OKLCH L 66.0% C 0.228 H 308.6°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#BA5EFA
RGBrgb(186, 94, 250)
HSLhsl(275, 94%, 67%)
HSVhsv(275, 62%, 98%)
CMYKcmyk(25.6%, 62.4%, 0%, 2%)
CIE-LABlab(57.41, 62.90, -63.28)
CIE-LCHlch(57.41, 89.22, 314.83°)
OKLaboklab(66.01% 0.1424 -0.1787)
OKLCHoklch(66.01% 0.228 308.6)
XYZxyz(41.5042, 25.3473, 93.1300)
Luminance0.2535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EFA #9EFA5E
analogous
#6C5EFA #BA5EFA #FA5EEC
triadic
#BA5EFA #FABA5E #5EFABA
tetradic
#BA5EFA #FA6C5E #9EFA5E #5EECFA
square
#BA5EFA #FA6C5E #9EFA5E #5EECFA
split-complementary
#BA5EFA #ECFA5E #5EFA6C
monochromatic
#8107D7 #A123F8 #BA5EFA #D399FC #EDD5FE

Accessibility & contrast

On white

3.46
#BA5EFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#BA5EFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EFA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EFA#FFFFFF#000000##000000
##BA5EFA1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FF
Deuteranopia (green-blind)
#458BF6
Tritanopia (blue-blind)
#B17DA4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ba5efa;
/* rgb */ color: rgb(186, 94, 250);
/* oklch */ color: oklch(66.0% 0.228 308.6);
Tailwind
colors: {
  custom: {
    50: '#d391fd',
    500: '#ba5efa',
    950: '#000000',
  },
}
SCSS
$custom: #ba5efa;
$custom-light: #d391fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5efa",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 250
  },
  "hsl": {
    "h": 275.385,
    "s": 93.976,
    "l": 67.451
  },
  "oklch": {
    "l": 0.66009,
    "c": 0.22849,
    "h": 308.6
  },
  "luminance": 0.25347
}

Semantic roles & 50–950 ramp

primary
#BA5EFA
secondary
#D6F2C1
accent
#E6005E
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA5EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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