#BA6EF7#BA6EF7

#BA6EF7 is a light, highly saturated violet. Relative luminance 0.283; OKLCH L 68.0% C 0.203 H 307.5°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#BA6EF7
RGBrgb(186, 110, 247)
HSLhsl(273, 90%, 70%)
HSVhsv(273, 55%, 97%)
CMYKcmyk(24.7%, 55.5%, 0%, 3.1%)
CIE-LABlab(60.16, 54.38, -57.21)
CIE-LCHlch(60.16, 78.93, 313.55°)
OKLaboklab(67.96% 0.1234 -0.161)
OKLCHoklch(67.96% 0.203 307.5)
XYZxyz(42.6107, 28.3069, 91.1967)
Luminance0.2831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6EF7 #ABF76E
analogous
#766EF7 #BA6EF7 #F76EEF
triadic
#BA6EF7 #F7BA6E #6EF7BA
tetradic
#BA6EF7 #F7766E #ABF76E #6EEFF7
square
#BA6EF7 #F7766E #ABF76E #6EEFF7
split-complementary
#BA6EF7 #EFF76E #6EF776
monochromatic
#810CDE #9E34F4 #BA6EF7 #D6A8FA #F1E2FD

Accessibility & contrast

On white

3.15
#BA6EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#BA6EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6EF7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6EF7#FFFFFF#000000##000000
##BA6EF71.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8EFC
Deuteranopia (green-blind)
#5A92F4
Tritanopia (blue-blind)
#B187A8
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba6ef7;
/* rgb */ color: rgb(186, 110, 247);
/* oklch */ color: oklch(68.0% 0.203 307.5);
Tailwind
colors: {
  custom: {
    50: '#d29afa',
    500: '#ba6ef7',
    950: '#000000',
  },
}
SCSS
$custom: #ba6ef7;
$custom-light: #d29afa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6ef7",
  "rgb": {
    "r": 186,
    "g": 110,
    "b": 247
  },
  "hsl": {
    "h": 273.285,
    "s": 89.542,
    "l": 70
  },
  "oklch": {
    "l": 0.67959,
    "c": 0.2028,
    "h": 307.5
  },
  "luminance": 0.28306
}

Semantic roles & 50–950 ramp

primary
#BA6EF7
secondary
#DEF4CD
accent
#E60066
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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