#BA6AF5#BA6AF5

#BA6AF5 is a light, highly saturated violet. Relative luminance 0.273; OKLCH L 67.3% C 0.206 H 308.4°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#BA6AF5
RGBrgb(186, 106, 245)
HSLhsl(275, 87%, 69%)
HSVhsv(275, 57%, 96%)
CMYKcmyk(24.1%, 56.7%, 0%, 3.9%)
CIE-LABlab(59.29, 55.96, -57.50)
CIE-LCHlch(59.29, 80.24, 314.22°)
OKLaboklab(67.28% 0.1283 -0.1618)
OKLCHoklch(67.28% 0.206 308.4)
XYZxyz(41.8819, 27.3404, 89.4394)
Luminance0.2734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AF5 #A5F56A
analogous
#756AF5 #BA6AF5 #F56AEB
triadic
#BA6AF5 #F5BA6A #6AF5BA
tetradic
#BA6AF5 #F5756A #A5F56A #6AEBF5
square
#BA6AF5 #F5756A #A5F56A #6AEBF5
split-complementary
#BA6AF5 #EBF56A #6AF575
monochromatic
#810ED6 #9F31F1 #BA6AF5 #D5A3F9 #EFDDFD

Accessibility & contrast

On white

3.25
#BA6AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#BA6AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AF5
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AF5#FFFFFF#000000##000000
##BA6AF51.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#388BFA
Deuteranopia (green-blind)
#5790F2
Tritanopia (blue-blind)
#B184A6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba6af5;
/* rgb */ color: rgb(186, 106, 245);
/* oklch */ color: oklch(67.3% 0.206 308.4);
Tailwind
colors: {
  custom: {
    50: '#d298f9',
    500: '#ba6af5',
    950: '#000000',
  },
}
SCSS
$custom: #ba6af5;
$custom-light: #d298f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6af5",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 245
  },
  "hsl": {
    "h": 274.532,
    "s": 87.421,
    "l": 68.824
  },
  "oklch": {
    "l": 0.6728,
    "c": 0.20648,
    "h": 308.4
  },
  "luminance": 0.2734
}

Semantic roles & 50–950 ramp

primary
#BA6AF5
secondary
#DAF2C9
accent
#E40262
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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