#BA6EFE#BA6EFE

#BA6EFE is a light, highly saturated violet. Relative luminance 0.287; OKLCH L 68.4% C 0.210 H 305.9°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#BA6EFE
RGBrgb(186, 110, 254)
HSLhsl(272, 99%, 71%)
HSVhsv(272, 57%, 100%)
CMYKcmyk(26.8%, 56.7%, 0%, 0.4%)
CIE-LABlab(60.56, 55.95, -60.44)
CIE-LCHlch(60.56, 82.36, 312.79°)
OKLaboklab(68.37% 0.1235 -0.1704)
OKLCHoklch(68.37% 0.211 305.9)
XYZxyz(43.7112, 28.7471, 96.9927)
Luminance0.2875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6EFE #B2FE6E
analogous
#726EFE #BA6EFE #FE6EFA
triadic
#BA6EFE #FEBA6E #6EFEBA
tetradic
#BA6EFE #FE726E #B2FE6E #6EFAFE
square
#BA6EFE #FE726E #B2FE6E #6EFAFE
split-complementary
#BA6EFE #FAFE6E #6EFE72
monochromatic
#7F02F0 #9D31FE #BA6EFE #D7ABFE #F1E1FF

Accessibility & contrast

On white

3.11
#BA6EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#BA6EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6EFE
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6EFE#FFFFFF#000000##000000
##BA6EFE1.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3590FF
Deuteranopia (green-blind)
#5492FB
Tritanopia (blue-blind)
#AF8AAC
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba6efe;
/* rgb */ color: rgb(186, 110, 254);
/* oklch */ color: oklch(68.4% 0.210 305.9);
Tailwind
colors: {
  custom: {
    50: '#d29aff',
    500: '#ba6efe',
    950: '#000000',
  },
}
SCSS
$custom: #ba6efe;
$custom-light: #d29aff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6efe",
  "rgb": {
    "r": 186,
    "g": 110,
    "b": 254
  },
  "hsl": {
    "h": 271.667,
    "s": 98.63,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68374,
    "c": 0.2105,
    "h": 305.9
  },
  "luminance": 0.28747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA6EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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