#BA6AEF#BA6AEF

#BA6AEF is a light, highly saturated violet. Relative luminance 0.270; OKLCH L 66.9% C 0.200 H 309.8°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#BA6AEF
RGBrgb(186, 106, 239)
HSLhsl(276, 81%, 68%)
HSVhsv(276, 56%, 94%)
CMYKcmyk(22.2%, 55.6%, 0%, 6.3%)
CIE-LABlab(58.96, 54.65, -54.70)
CIE-LCHlch(58.96, 77.32, 314.97°)
OKLaboklab(66.93% 0.1281 -0.1536)
OKLCHoklch(66.93% 0.2 309.8)
XYZxyz(40.9808, 26.9799, 84.6934)
Luminance0.2698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AEF #9FEF6A
analogous
#776AEF #BA6AEF #EF6AE2
triadic
#BA6AEF #EFBA6A #6AEFBA
tetradic
#BA6AEF #EF776A #9FEF6A #6AE2EF
square
#BA6AEF #EF776A #9FEF6A #6AE2EF
split-complementary
#BA6AEF #E2EF6A #6AEF77
monochromatic
#8216C9 #A033E9 #BA6AEF #D4A1F5 #EDD9FB

Accessibility & contrast

On white

3.28
#BA6AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#BA6AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AEF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AEF#FFFFFF#000000##000000
##BA6AEF1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8AF3
Deuteranopia (green-blind)
#5C8FEC
Tritanopia (blue-blind)
#B382A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6aef;
/* rgb */ color: rgb(186, 106, 239);
/* oklch */ color: oklch(66.9% 0.200 309.8);
Tailwind
colors: {
  custom: {
    50: '#d298f5',
    500: '#ba6aef',
    950: '#000000',
  },
}
SCSS
$custom: #ba6aef;
$custom-light: #d298f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6aef",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 239
  },
  "hsl": {
    "h": 276.09,
    "s": 80.606,
    "l": 67.647
  },
  "oklch": {
    "l": 0.6693,
    "c": 0.20001,
    "h": 309.8
  },
  "luminance": 0.26979
}

Semantic roles & 50–950 ramp

primary
#BA6AEF
secondary
#D6EFC6
accent
#DD095D
background
#FDF9FF
surface
#FAF2FE
border
#D3CCD6
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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