#BA5BFD#BA5BFD

#BA5BFD is a light, highly saturated violet. Relative luminance 0.250; OKLCH L 65.8% C 0.235 H 308.2°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#BA5BFD
RGBrgb(186, 91, 253)
HSLhsl(275, 98%, 67%)
HSVhsv(275, 64%, 99%)
CMYKcmyk(26.5%, 64%, 0%, 0.8%)
CIE-LABlab(57.09, 64.94, -65.46)
CIE-LCHlch(57.09, 92.21, 314.77°)
OKLaboklab(65.83% 0.1456 -0.1851)
OKLCHoklch(65.83% 0.235 308.2)
XYZxyz(41.7168, 25.0137, 95.5400)
Luminance0.2501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BFD #9EFD5B
analogous
#695BFD #BA5BFD #FD5BEF
triadic
#BA5BFD #FDBA5B #5BFDBA
tetradic
#BA5BFD #FD695B #9EFD5B #5BEFFD
square
#BA5BFD #FD695B #9EFD5B #5BEFFD
split-complementary
#BA5BFD #EFFD5B #5BFD69
monochromatic
#8103DB #A11FFC #BA5BFD #D397FE #EDD4FE

Accessibility & contrast

On white

3.50
#BA5BFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#BA5BFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BFD
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BFD#FFFFFF#000000##000000
##BA5BFD1.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba5bfd;
/* rgb */ color: rgb(186, 91, 253);
/* oklch */ color: oklch(65.8% 0.235 308.2);
Tailwind
colors: {
  custom: {
    50: '#d38fff',
    500: '#ba5bfd',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bfd;
$custom-light: #d38fff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bfd",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 253
  },
  "hsl": {
    "h": 275.185,
    "s": 97.59,
    "l": 67.451
  },
  "oklch": {
    "l": 0.65835,
    "c": 0.23547,
    "h": 308.2
  },
  "luminance": 0.25013
}

Semantic roles & 50–950 ramp

primary
#BA5BFD
secondary
#D6F3C1
accent
#E6005F
background
#FDF9FF
surface
#FBF1FF
border
#D4CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA5BFD

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

Preview Lab → · Contrast checker → · Palette generator →

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