#BA6DFB#BA6DFB

#BA6DFB is a light, highly saturated violet. Relative luminance 0.283; OKLCH L 68.1% C 0.209 H 306.7°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#BA6DFB
RGBrgb(186, 109, 251)
HSLhsl(273, 95%, 71%)
HSVhsv(273, 57%, 98%)
CMYKcmyk(25.9%, 56.6%, 0%, 1.6%)
CIE-LABlab(60.20, 55.78, -59.37)
CIE-LCHlch(60.20, 81.46, 313.22°)
OKLaboklab(68.05% 0.1247 -0.1673)
OKLCHoklch(68.05% 0.209 306.7)
XYZxyz(43.1273, 28.3419, 94.4466)
Luminance0.2834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DFB #AEFB6D
analogous
#736DFB #BA6DFB #FB6DF5
triadic
#BA6DFB #FBBA6D #6DFBBA
tetradic
#BA6DFB #FB736D #AEFB6D #6DF5FB
square
#BA6DFB #FB736D #AEFB6D #6DF5FB
split-complementary
#BA6DFB #F5FB6D #6DFB73
monochromatic
#8006E7 #9E31F9 #BA6DFB #D6A9FD #F1E1FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA6DFB#FFFFFF#000000##000000
##BA6DFB1.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)
#378EFF
Deuteranopia (green-blind)
#5692F8
Tritanopia (blue-blind)
#B088AA
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba6dfb;
/* rgb */ color: rgb(186, 109, 251);
/* oklch */ color: oklch(68.1% 0.209 306.7);
Tailwind
colors: {
  custom: {
    50: '#d29afd',
    500: '#ba6dfb',
    950: '#000000',
  },
}
SCSS
$custom: #ba6dfb;
$custom-light: #d29afd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6dfb",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 251
  },
  "hsl": {
    "h": 272.535,
    "s": 94.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.68054,
    "c": 0.20865,
    "h": 306.7
  },
  "luminance": 0.28341
}

Semantic roles & 50–950 ramp

primary
#BA6DFB
secondary
#E0F5CF
accent
#E60069
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA6DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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