#BA6DFE#BA6DFE

#BA6DFE is a light, highly saturated violet. Relative luminance 0.285; OKLCH L 68.2% C 0.212 H 306.1°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#BA6DFE
RGBrgb(186, 109, 254)
HSLhsl(272, 99%, 71%)
HSVhsv(272, 57%, 100%)
CMYKcmyk(26.8%, 57.1%, 0%, 0.4%)
CIE-LABlab(60.37, 56.46, -60.75)
CIE-LCHlch(60.37, 82.93, 312.90°)
OKLaboklab(68.23% 0.1247 -0.1713)
OKLCHoklch(68.23% 0.212 306.1)
XYZxyz(43.6039, 28.5325, 96.9569)
Luminance0.2853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DFE #B1FE6D
analogous
#716DFE #BA6DFE #FE6DF9
triadic
#BA6DFE #FEBA6D #6DFEBA
tetradic
#BA6DFE #FE716D #B1FE6D #6DF9FE
square
#BA6DFE #FE716D #B1FE6D #6DF9FE
split-complementary
#BA6DFE #F9FE6D #6DFE71
monochromatic
#8002EF #9D30FE #BA6DFE #D7AAFE #F1E1FF

Accessibility & contrast

On white

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

On black

6.71
#BA6DFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6DFE
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6DFE#FFFFFF#000000##000000
##BA6DFE1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#338FFF
Deuteranopia (green-blind)
#5392FB
Tritanopia (blue-blind)
#AF89AB
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba6dfe;
/* rgb */ color: rgb(186, 109, 254);
/* oklch */ color: oklch(68.2% 0.212 306.1);
Tailwind
colors: {
  custom: {
    50: '#d29aff',
    500: '#ba6dfe',
    950: '#000000',
  },
}
SCSS
$custom: #ba6dfe;
$custom-light: #d29aff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6dfe",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 254
  },
  "hsl": {
    "h": 271.862,
    "s": 98.639,
    "l": 71.176
  },
  "oklch": {
    "l": 0.68234,
    "c": 0.21193,
    "h": 306.1
  },
  "luminance": 0.28532
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA6DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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