#BA6FEC#BA6FEC

#BA6FEC is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.5% C 0.189 H 310.0°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#BA6FEC
RGBrgb(186, 111, 236)
HSLhsl(276, 77%, 68%)
HSVhsv(276, 53%, 93%)
CMYKcmyk(21.2%, 53%, 0%, 7.5%)
CIE-LABlab(59.77, 51.43, -51.74)
CIE-LCHlch(59.77, 72.95, 314.83°)
OKLaboklab(67.47% 0.1215 -0.145)
OKLCHoklch(67.47% 0.189 310)
XYZxyz(41.0716, 27.8648, 82.5554)
Luminance0.2786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6FEC #A1EC6F
analogous
#7B6FEC #BA6FEC #EC6FDF
triadic
#BA6FEC #ECBA6F #6FECBA
tetradic
#BA6FEC #EC7B6F #A1EC6F #6FDFEC
square
#BA6FEC #EC7B6F #A1EC6F #6FDFEC
split-complementary
#BA6FEC #DFEC6F #6FEC7B
monochromatic
#821AC6 #A039E5 #BA6FEC #D4A5F3 #EEDBFA

Accessibility & contrast

On white

3.19
#BA6FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#BA6FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6FEC
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6FEC#FFFFFF#000000##000000
##BA6FEC1.003.196.576.57
#FFFFFF3.191.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8DF0
Deuteranopia (green-blind)
#6391E9
Tritanopia (blue-blind)
#B485A3
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6fec;
/* rgb */ color: rgb(186, 111, 236);
/* oklch */ color: oklch(67.5% 0.189 310.0);
Tailwind
colors: {
  custom: {
    50: '#d19bf3',
    500: '#ba6fec',
    950: '#000000',
  },
}
SCSS
$custom: #ba6fec;
$custom-light: #d19bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6fec",
  "rgb": {
    "r": 186,
    "g": 111,
    "b": 236
  },
  "hsl": {
    "h": 276,
    "s": 76.687,
    "l": 68.039
  },
  "oklch": {
    "l": 0.67474,
    "c": 0.18919,
    "h": 310
  },
  "luminance": 0.27864
}

Semantic roles & 50–950 ramp

primary
#BA6FEC
secondary
#D8EFC8
accent
#D90D5E
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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