#BA5FFA#BA5FFA

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

Color values

HEX#BA5FFA
RGBrgb(186, 95, 250)
HSLhsl(275, 94%, 68%)
HSVhsv(275, 62%, 98%)
CMYKcmyk(25.6%, 62%, 0%, 2%)
CIE-LABlab(57.58, 62.43, -63.00)
CIE-LCHlch(57.58, 88.69, 314.74°)
OKLaboklab(66.13% 0.1413 -0.1779)
OKLCHoklch(66.13% 0.227 308.5)
XYZxyz(41.5937, 25.5263, 93.1599)
Luminance0.2553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FFA #9FFA5F
analogous
#6D5FFA #BA5FFA #FA5FEC
triadic
#BA5FFA #FABA5F #5FFABA
tetradic
#BA5FFA #FA6D5F #9FFA5F #5FECFA
square
#BA5FFA #FA6D5F #9FFA5F #5FECFA
split-complementary
#BA5FFA #ECFA5F #5FFA6D
monochromatic
#8207D8 #A024F8 #BA5FFA #D49AFC #EDD6FE

Accessibility & contrast

On white

3.44
#BA5FFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#BA5FFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FFA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FFA#FFFFFF#000000##000000
##BA5FFA1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0087FF
Deuteranopia (green-blind)
#468BF6
Tritanopia (blue-blind)
#B07EA4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ba5ffa;
/* rgb */ color: rgb(186, 95, 250);
/* oklch */ color: oklch(66.1% 0.227 308.5);
Tailwind
colors: {
  custom: {
    50: '#d391fd',
    500: '#ba5ffa',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ffa;
$custom-light: #d391fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ffa",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 250
  },
  "hsl": {
    "h": 275.226,
    "s": 93.939,
    "l": 67.647
  },
  "oklch": {
    "l": 0.66134,
    "c": 0.22715,
    "h": 308.5
  },
  "luminance": 0.25526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5FFA

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

Preview Lab → · Contrast checker → · Palette generator →

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