#BA6DF6#BA6DF6

#BA6DF6 is a light, highly saturated violet. Relative luminance 0.280; OKLCH L 67.8% C 0.203 H 307.8°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#BA6DF6
RGBrgb(186, 109, 246)
HSLhsl(274, 88%, 70%)
HSVhsv(274, 56%, 96%)
CMYKcmyk(24.4%, 55.7%, 0%, 3.5%)
CIE-LABlab(59.92, 54.67, -57.05)
CIE-LCHlch(59.92, 79.01, 313.78°)
OKLaboklab(67.76% 0.1246 -0.1605)
OKLCHoklch(67.76% 0.203 307.8)
XYZxyz(42.3495, 28.0307, 90.3504)
Luminance0.2803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DF6 #A9F66D
analogous
#766DF6 #BA6DF6 #F66DED
triadic
#BA6DF6 #F6BA6D #6DF6BA
tetradic
#BA6DF6 #F6766D #A9F66D #6DEDF6
square
#BA6DF6 #F6766D #A9F66D #6DEDF6
split-complementary
#BA6DF6 #EDF66D #6DF676
monochromatic
#810EDB #9F33F2 #BA6DF6 #D5A7FA #F0E0FD

Accessibility & contrast

On white

3.18
#BA6DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#BA6DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6DF6
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6DF6#FFFFFF#000000##000000
##BA6DF61.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8DFA
Deuteranopia (green-blind)
#5A91F3
Tritanopia (blue-blind)
#B186A7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6df6;
/* rgb */ color: rgb(186, 109, 246);
/* oklch */ color: oklch(67.8% 0.203 307.8);
Tailwind
colors: {
  custom: {
    50: '#d29afa',
    500: '#ba6df6',
    950: '#000000',
  },
}
SCSS
$custom: #ba6df6;
$custom-light: #d29afa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6df6",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 246
  },
  "hsl": {
    "h": 273.723,
    "s": 88.387,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67759,
    "c": 0.20318,
    "h": 307.8
  },
  "luminance": 0.2803
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA6DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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