#BA6EF8#BA6EF8

#BA6EF8 is a light, highly saturated violet. Relative luminance 0.284; OKLCH L 68.0% C 0.204 H 307.2°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#BA6EF8
RGBrgb(186, 110, 248)
HSLhsl(273, 91%, 70%)
HSVhsv(273, 56%, 97%)
CMYKcmyk(25%, 55.6%, 0%, 2.7%)
CIE-LABlab(60.22, 54.60, -57.67)
CIE-LCHlch(60.22, 79.42, 313.43°)
OKLaboklab(68.02% 0.1234 -0.1623)
OKLCHoklch(68.02% 0.204 307.2)
XYZxyz(42.7654, 28.3688, 92.0115)
Luminance0.2837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6EF8 #ACF86E
analogous
#756EF8 #BA6EF8 #F86EF1
triadic
#BA6EF8 #F8BA6E #6EF8BA
tetradic
#BA6EF8 #F8756E #ACF86E #6EF1F8
square
#BA6EF8 #F8756E #ACF86E #6EF1F8
split-complementary
#BA6EF8 #F1F86E #6EF875
monochromatic
#810BE1 #9E34F5 #BA6EF8 #D6A8FB #F1E2FE

Accessibility & contrast

On white

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

On black

6.67
#BA6EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6EF8
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6EF8#FFFFFF#000000##000000
##BA6EF81.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8EFD
Deuteranopia (green-blind)
#5992F5
Tritanopia (blue-blind)
#B088A9
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba6ef8;
/* rgb */ color: rgb(186, 110, 248);
/* oklch */ color: oklch(68.0% 0.204 307.2);
Tailwind
colors: {
  custom: {
    50: '#d29afb',
    500: '#ba6ef8',
    950: '#000000',
  },
}
SCSS
$custom: #ba6ef8;
$custom-light: #d29afb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6ef8",
  "rgb": {
    "r": 186,
    "g": 110,
    "b": 248
  },
  "hsl": {
    "h": 273.043,
    "s": 90.789,
    "l": 70.196
  },
  "oklch": {
    "l": 0.68018,
    "c": 0.2039,
    "h": 307.2
  },
  "luminance": 0.28368
}

Semantic roles & 50–950 ramp

primary
#BA6EF8
secondary
#DFF4CE
accent
#E60067
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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