#BA6BFB#BA6BFB

#BA6BFB is a light, highly saturated violet. Relative luminance 0.279; OKLCH L 67.8% C 0.212 H 306.9°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#BA6BFB
RGBrgb(186, 107, 251)
HSLhsl(273, 95%, 70%)
HSVhsv(273, 57%, 98%)
CMYKcmyk(25.9%, 57.4%, 0%, 1.6%)
CIE-LABlab(59.82, 56.79, -59.97)
CIE-LCHlch(59.82, 82.60, 313.44°)
OKLaboklab(67.78% 0.1271 -0.1691)
OKLCHoklch(67.78% 0.212 306.9)
XYZxyz(42.9164, 27.9200, 94.3763)
Luminance0.2792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BFB #ACFB6B
analogous
#726BFB #BA6BFB #FB6BF4
triadic
#BA6BFB #FBBA6B #6BFBBA
tetradic
#BA6BFB #FB726B #ACFB6B #6BF4FB
square
#BA6BFB #FB726B #ACFB6B #6BF4FB
split-complementary
#BA6BFB #F4FB6B #6BFB72
monochromatic
#8106E5 #9E2FF9 #BA6BFB #D6A7FD #F1E1FE

Accessibility & contrast

On white

3.19
#BA6BFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#BA6BFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6BFB
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6BFB#FFFFFF#000000##000000
##BA6BFB1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#328DFF
Deuteranopia (green-blind)
#5391F8
Tritanopia (blue-blind)
#B087A9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6bfb;
/* rgb */ color: rgb(186, 107, 251);
/* oklch */ color: oklch(67.8% 0.212 306.9);
Tailwind
colors: {
  custom: {
    50: '#d298fd',
    500: '#ba6bfb',
    950: '#000000',
  },
}
SCSS
$custom: #ba6bfb;
$custom-light: #d298fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6bfb",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 251
  },
  "hsl": {
    "h": 272.917,
    "s": 94.737,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67776,
    "c": 0.21153,
    "h": 306.9
  },
  "luminance": 0.2792
}

Semantic roles & 50–950 ramp

primary
#BA6BFB
secondary
#DFF5CD
accent
#E60068
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA6BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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