#BA5FF9#BA5FF9

#BA5FF9 is a light, highly saturated violet. Relative luminance 0.255; OKLCH L 66.1% C 0.226 H 308.7°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#BA5FF9
RGBrgb(186, 95, 249)
HSLhsl(275, 93%, 67%)
HSVhsv(275, 62%, 98%)
CMYKcmyk(25.3%, 61.8%, 0%, 2.4%)
CIE-LABlab(57.52, 62.21, -62.54)
CIE-LCHlch(57.52, 88.22, 314.85°)
OKLaboklab(66.07% 0.1413 -0.1765)
OKLCHoklch(66.07% 0.226 308.7)
XYZxyz(41.4374, 25.4637, 92.3362)
Luminance0.2546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FF9 #9EF95F
analogous
#6D5FF9 #BA5FF9 #F95FEB
triadic
#BA5FF9 #F9BA5F #5FF9BA
tetradic
#BA5FF9 #F96D5F #9EF95F #5FEBF9
square
#BA5FF9 #F96D5F #9EF95F #5FEBF9
split-complementary
#BA5FF9 #EBF95F #5FF96D
monochromatic
#8108D6 #A124F7 #BA5FF9 #D39AFB #EDD5FD

Accessibility & contrast

On white

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

On black

6.09
#BA5FF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FF9
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FF9#FFFFFF#000000##000000
##BA5FF91.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0486FE
Deuteranopia (green-blind)
#478BF5
Tritanopia (blue-blind)
#B17EA4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ba5ff9;
/* rgb */ color: rgb(186, 95, 249);
/* oklch */ color: oklch(66.1% 0.226 308.7);
Tailwind
colors: {
  custom: {
    50: '#d391fc',
    500: '#ba5ff9',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ff9;
$custom-light: #d391fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ff9",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 249
  },
  "hsl": {
    "h": 275.455,
    "s": 92.771,
    "l": 67.451
  },
  "oklch": {
    "l": 0.66071,
    "c": 0.22612,
    "h": 308.7
  },
  "luminance": 0.25463
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5FF9

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

Preview Lab → · Contrast checker → · Palette generator →

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