#BA5EFB#BA5EFB

#BA5EFB is a light, highly saturated violet. Relative luminance 0.254; OKLCH L 66.1% C 0.230 H 308.3°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#BA5EFB
RGBrgb(186, 94, 251)
HSLhsl(275, 95%, 68%)
HSVhsv(275, 63%, 98%)
CMYKcmyk(25.9%, 62.5%, 0%, 1.6%)
CIE-LABlab(57.47, 63.12, -63.73)
CIE-LCHlch(57.47, 89.70, 314.72°)
OKLaboklab(66.07% 0.1424 -0.18)
OKLCHoklch(66.07% 0.23 308.3)
XYZxyz(41.6615, 25.4102, 93.9580)
Luminance0.2541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EFB #9FFB5E
analogous
#6B5EFB #BA5EFB #FB5EEE
triadic
#BA5EFB #FBBA5E #5EFBBA
tetradic
#BA5EFB #FB6B5E #9FFB5E #5EEEFB
square
#BA5EFB #FB6B5E #9FFB5E #5EEEFB
split-complementary
#BA5EFB #EEFB5E #5EFB6B
monochromatic
#8205D9 #A022FA #BA5EFB #D49AFC #EDD5FE

Accessibility & contrast

On white

3.45
#BA5EFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#BA5EFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EFB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EFB#FFFFFF#000000##000000
##BA5EFB1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FF
Deuteranopia (green-blind)
#438BF7
Tritanopia (blue-blind)
#B07EA4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ba5efb;
/* rgb */ color: rgb(186, 94, 251);
/* oklch */ color: oklch(66.1% 0.230 308.3);
Tailwind
colors: {
  custom: {
    50: '#d391fd',
    500: '#ba5efb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5efb;
$custom-light: #d391fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5efb",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 251
  },
  "hsl": {
    "h": 275.159,
    "s": 95.152,
    "l": 67.647
  },
  "oklch": {
    "l": 0.66073,
    "c": 0.22951,
    "h": 308.3
  },
  "luminance": 0.2541
}

Semantic roles & 50–950 ramp

primary
#BA5EFB
secondary
#D6F3C2
accent
#E6005F
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA5EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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