#BA6DF8#BA6DF8

#BA6DF8 is a light, highly saturated violet. Relative luminance 0.282; OKLCH L 67.9% C 0.205 H 307.4°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#BA6DF8
RGBrgb(186, 109, 248)
HSLhsl(273, 91%, 70%)
HSVhsv(273, 56%, 97%)
CMYKcmyk(25%, 56%, 0%, 2.7%)
CIE-LABlab(60.03, 55.11, -57.98)
CIE-LCHlch(60.03, 79.99, 313.55°)
OKLaboklab(67.88% 0.1246 -0.1632)
OKLCHoklch(67.88% 0.205 307.4)
XYZxyz(42.6582, 28.1542, 91.9758)
Luminance0.2815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DF8 #ABF86D
analogous
#746DF8 #BA6DF8 #F86DF1
triadic
#BA6DF8 #F8BA6D #6DF8BA
tetradic
#BA6DF8 #F8746D #ABF86D #6DF1F8
square
#BA6DF8 #F8746D #ABF86D #6DF1F8
split-complementary
#BA6DF8 #F1F86D #6DF874
monochromatic
#810BE0 #9E33F5 #BA6DF8 #D6A7FB #F1E2FE

Accessibility & contrast

On white

3.17
#BA6DF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#BA6DF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6DF8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6DF8#FFFFFF#000000##000000
##BA6DF81.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8EFD
Deuteranopia (green-blind)
#5891F5
Tritanopia (blue-blind)
#B187A8
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba6df8;
/* rgb */ color: rgb(186, 109, 248);
/* oklch */ color: oklch(67.9% 0.205 307.4);
Tailwind
colors: {
  custom: {
    50: '#d29afb',
    500: '#ba6df8',
    950: '#000000',
  },
}
SCSS
$custom: #ba6df8;
$custom-light: #d29afb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6df8",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 248
  },
  "hsl": {
    "h": 273.237,
    "s": 90.85,
    "l": 70
  },
  "oklch": {
    "l": 0.67876,
    "c": 0.20536,
    "h": 307.4
  },
  "luminance": 0.28154
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA6DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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