#BA5CFB#BA5CFB

#BA5CFB is a light, highly saturated violet. Relative luminance 0.251; OKLCH L 65.8% C 0.232 H 308.5°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#BA5CFB
RGBrgb(186, 92, 251)
HSLhsl(275, 95%, 67%)
HSVhsv(275, 63%, 98%)
CMYKcmyk(25.9%, 63.3%, 0%, 1.6%)
CIE-LABlab(57.13, 64.05, -64.28)
CIE-LCHlch(57.13, 90.74, 314.90°)
OKLaboklab(65.83% 0.1446 -0.1816)
OKLCHoklch(65.83% 0.232 308.5)
XYZxyz(41.4859, 25.0591, 93.8995)
Luminance0.2506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CFB #9DFB5C
analogous
#6B5CFB #BA5CFB #FB5CEC
triadic
#BA5CFB #FBBA5C #5CFBBA
tetradic
#BA5CFB #FB6B5C #9DFB5C #5CECFB
square
#BA5CFB #FB6B5C #9DFB5C #5CECFB
split-complementary
#BA5CFB #ECFB5C #5CFB6B
monochromatic
#8105D7 #A120FA #BA5CFB #D398FC #EDD3FE

Accessibility & contrast

On white

3.49
#BA5CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#BA5CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CFB
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CFB#FFFFFF#000000##000000
##BA5CFB1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#418AF7
Tritanopia (blue-blind)
#B07DA4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5cfb;
/* rgb */ color: rgb(186, 92, 251);
/* oklch */ color: oklch(65.8% 0.232 308.5);
Tailwind
colors: {
  custom: {
    50: '#d38ffd',
    500: '#ba5cfb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cfb;
$custom-light: #d38ffd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cfb",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 251
  },
  "hsl": {
    "h": 275.472,
    "s": 95.21,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65827,
    "c": 0.23215,
    "h": 308.5
  },
  "luminance": 0.25058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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