#BA6DFF#BA6DFF

#BA6DFF is a light, highly saturated violet. Relative luminance 0.286; OKLCH L 68.3% C 0.213 H 305.8°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#BA6DFF
RGBrgb(186, 109, 255)
HSLhsl(272, 100%, 71%)
HSVhsv(272, 57%, 100%)
CMYKcmyk(27.1%, 57.3%, 0%, 0%)
CIE-LABlab(60.42, 56.68, -61.21)
CIE-LCHlch(60.42, 83.42, 312.80°)
OKLaboklab(68.29% 0.1248 -0.1727)
OKLCHoklch(68.29% 0.213 305.8)
XYZxyz(43.7645, 28.5967, 97.8025)
Luminance0.2860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DFF #B2FF6D
analogous
#716DFF #BA6DFF #FF6DFB
triadic
#BA6DFF #FFBA6D #6DFFBA
tetradic
#BA6DFF #FF716D #B2FF6D #6DFBFF
square
#BA6DFF #FF716D #B2FF6D #6DFBFF
split-complementary
#BA6DFF #FBFF6D #6DFF71
monochromatic
#7F00F2 #9D30FF #BA6DFF #D7AAFF #F1E0FF

Accessibility & contrast

On white

3.13
#BA6DFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#BA6DFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6DFF
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6DFF#FFFFFF#000000##000000
##BA6DFF1.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#318FFF
Deuteranopia (green-blind)
#5292FC
Tritanopia (blue-blind)
#AF89AC
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba6dff;
/* rgb */ color: rgb(186, 109, 255);
/* oklch */ color: oklch(68.3% 0.213 305.8);
Tailwind
colors: {
  custom: {
    50: '#d29aff',
    500: '#ba6dff',
    950: '#000000',
  },
}
SCSS
$custom: #ba6dff;
$custom-light: #d29aff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6dff",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 255
  },
  "hsl": {
    "h": 271.644,
    "s": 100,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68294,
    "c": 0.21303,
    "h": 305.8
  },
  "luminance": 0.28596
}

Semantic roles & 50–950 ramp

primary
#BA6DFF
secondary
#E3F7D1
accent
#E6006C
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA6DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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