#BA6AFE#BA6AFE

#BA6AFE is a light, highly saturated violet. Relative luminance 0.279; OKLCH L 67.8% C 0.216 H 306.4°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#BA6AFE
RGBrgb(186, 106, 254)
HSLhsl(272, 99%, 71%)
HSVhsv(272, 58%, 100%)
CMYKcmyk(26.8%, 58.3%, 0%, 0.4%)
CIE-LABlab(59.80, 57.97, -61.65)
CIE-LCHlch(59.80, 84.62, 313.23°)
OKLaboklab(67.82% 0.1283 -0.174)
OKLCHoklch(67.82% 0.216 306.4)
XYZxyz(43.2894, 27.9033, 96.8521)
Luminance0.2790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AFE #AEFE6A
analogous
#706AFE #BA6AFE #FE6AF8
triadic
#BA6AFE #FEBA6A #6AFEBA
tetradic
#BA6AFE #FE706A #AEFE6A #6AF8FE
square
#BA6AFE #FE706A #AEFE6A #6AF8FE
split-complementary
#BA6AFE #F8FE6A #6AFE70
monochromatic
#8002EC #9E2DFE #BA6AFE #D6A7FE #F1E1FF

Accessibility & contrast

On white

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

On black

6.58
#BA6AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AFE
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AFE#FFFFFF#000000##000000
##BA6AFE1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A8DFF
Deuteranopia (green-blind)
#4F91FB
Tritanopia (blue-blind)
#AF87AA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6afe;
/* rgb */ color: rgb(186, 106, 254);
/* oklch */ color: oklch(67.8% 0.216 306.4);
Tailwind
colors: {
  custom: {
    50: '#d398ff',
    500: '#ba6afe',
    950: '#000000',
  },
}
SCSS
$custom: #ba6afe;
$custom-light: #d398ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6afe",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 254
  },
  "hsl": {
    "h": 272.432,
    "s": 98.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67821,
    "c": 0.21619,
    "h": 306.4
  },
  "luminance": 0.27903
}

Semantic roles & 50–950 ramp

primary
#BA6AFE
secondary
#E0F6CE
accent
#E60069
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #BA6AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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