#BA5FFB#BA5FFB

#BA5FFB is a light, highly saturated violet. Relative luminance 0.256; OKLCH L 66.2% C 0.228 H 308.2°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#BA5FFB
RGBrgb(186, 95, 251)
HSLhsl(275, 95%, 68%)
HSVhsv(275, 62%, 98%)
CMYKcmyk(25.9%, 62.2%, 0%, 1.6%)
CIE-LABlab(57.65, 62.65, -63.46)
CIE-LCHlch(57.65, 89.17, 314.63°)
OKLaboklab(66.2% 0.1412 -0.1792)
OKLCHoklch(66.2% 0.228 308.2)
XYZxyz(41.7510, 25.5892, 93.9878)
Luminance0.2559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FFB #A0FB5F
analogous
#6C5FFB #BA5FFB #FB5FEE
triadic
#BA5FFB #FBBA5F #5FFBBA
tetradic
#BA5FFB #FB6C5F #A0FB5F #5FEEFB
square
#BA5FFB #FB6C5F #A0FB5F #5FEEFB
split-complementary
#BA5FFB #EEFB5F #5FFB6C
monochromatic
#8205DA #A023FA #BA5FFB #D49BFC #EDD6FE

Accessibility & contrast

On white

3.43
#BA5FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#BA5FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FFB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FFB#FFFFFF#000000##000000
##BA5FFB1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0087FF
Deuteranopia (green-blind)
#458CF7
Tritanopia (blue-blind)
#B07EA5
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ba5ffb;
/* rgb */ color: rgb(186, 95, 251);
/* oklch */ color: oklch(66.2% 0.228 308.2);
Tailwind
colors: {
  custom: {
    50: '#d391fd',
    500: '#ba5ffb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ffb;
$custom-light: #d391fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ffb",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 251
  },
  "hsl": {
    "h": 275,
    "s": 95.122,
    "l": 67.843
  },
  "oklch": {
    "l": 0.66197,
    "c": 0.22817,
    "h": 308.2
  },
  "luminance": 0.25589
}

Semantic roles & 50–950 ramp

primary
#BA5FFB
secondary
#D7F3C3
accent
#E60060
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA5FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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