#BA6EF5#BA6EF5

#BA6EF5 is a light, highly saturated violet. Relative luminance 0.282; OKLCH L 67.8% C 0.201 H 307.9°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#BA6EF5
RGBrgb(186, 110, 245)
HSLhsl(274, 87%, 70%)
HSVhsv(274, 55%, 96%)
CMYKcmyk(24.1%, 55.1%, 0%, 3.9%)
CIE-LABlab(60.05, 53.93, -56.28)
CIE-LCHlch(60.05, 77.95, 313.78°)
OKLaboklab(67.84% 0.1233 -0.1582)
OKLCHoklch(67.84% 0.201 307.9)
XYZxyz(42.3038, 28.1841, 89.5800)
Luminance0.2818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6EF5 #A9F56E
analogous
#776EF5 #BA6EF5 #F56EEC
triadic
#BA6EF5 #F5BA6E #6EF5BA
tetradic
#BA6EF5 #F5776E #A9F56E #6EECF5
square
#BA6EF5 #F5776E #A9F56E #6EECF5
split-complementary
#BA6EF5 #ECF56E #6EF577
monochromatic
#810FDA #9F35F1 #BA6EF5 #D5A7F9 #F0E1FD

Accessibility & contrast

On white

3.16
#BA6EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#BA6EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6EF5
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6EF5#FFFFFF#000000##000000
##BA6EF51.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#408EF9
Deuteranopia (green-blind)
#5C92F2
Tritanopia (blue-blind)
#B187A7
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba6ef5;
/* rgb */ color: rgb(186, 110, 245);
/* oklch */ color: oklch(67.8% 0.201 307.9);
Tailwind
colors: {
  custom: {
    50: '#d29af9',
    500: '#ba6ef5',
    950: '#000000',
  },
}
SCSS
$custom: #ba6ef5;
$custom-light: #d29af9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6ef5",
  "rgb": {
    "r": 186,
    "g": 110,
    "b": 245
  },
  "hsl": {
    "h": 273.778,
    "s": 87.097,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67843,
    "c": 0.20061,
    "h": 307.9
  },
  "luminance": 0.28184
}

Semantic roles & 50–950 ramp

primary
#BA6EF5
secondary
#DDF3CC
accent
#E40265
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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