#BA6FEB#BA6FEB

#BA6FEB is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.4% C 0.188 H 310.2°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#BA6FEB
RGBrgb(186, 111, 235)
HSLhsl(276, 76%, 68%)
HSVhsv(276, 53%, 92%)
CMYKcmyk(20.9%, 52.8%, 0%, 7.8%)
CIE-LABlab(59.71, 51.21, -51.27)
CIE-LCHlch(59.71, 72.46, 314.97°)
OKLaboklab(67.42% 0.1215 -0.1436)
OKLCHoklch(67.42% 0.188 310.2)
XYZxyz(40.9267, 27.8069, 81.7924)
Luminance0.2781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6FEB #A0EB6F
analogous
#7C6FEB #BA6FEB #EB6FDE
triadic
#BA6FEB #EBBA6F #6FEBBA
tetradic
#BA6FEB #EB7C6F #A0EB6F #6FDEEB
square
#BA6FEB #EB7C6F #A0EB6F #6FDEEB
split-complementary
#BA6FEB #DEEB6F #6FEB7C
monochromatic
#821BC4 #A039E4 #BA6FEB #D4A5F2 #EDDAFA

Accessibility & contrast

On white

3.20
#BA6FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#BA6FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6FEB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6FEB#FFFFFF#000000##000000
##BA6FEB1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8CEF
Deuteranopia (green-blind)
#6491E8
Tritanopia (blue-blind)
#B484A3
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6feb;
/* rgb */ color: rgb(186, 111, 235);
/* oklch */ color: oklch(67.4% 0.188 310.2);
Tailwind
colors: {
  custom: {
    50: '#d19bf2',
    500: '#ba6feb',
    950: '#000000',
  },
}
SCSS
$custom: #ba6feb;
$custom-light: #d19bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6feb",
  "rgb": {
    "r": 186,
    "g": 111,
    "b": 235
  },
  "hsl": {
    "h": 276.29,
    "s": 75.61,
    "l": 67.843
  },
  "oklch": {
    "l": 0.67418,
    "c": 0.18809,
    "h": 310.2
  },
  "luminance": 0.27806
}

Semantic roles & 50–950 ramp

primary
#BA6FEB
secondary
#D7EEC8
accent
#D80E5E
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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