#BA6AFD#BA6AFD

#BA6AFD is a light, highly saturated violet. Relative luminance 0.278; OKLCH L 67.8% C 0.215 H 306.6°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#BA6AFD
RGBrgb(186, 106, 253)
HSLhsl(273, 97%, 70%)
HSVhsv(273, 58%, 99%)
CMYKcmyk(26.5%, 58.1%, 0%, 0.8%)
CIE-LABlab(59.74, 57.74, -61.19)
CIE-LCHlch(59.74, 84.14, 313.34°)
OKLaboklab(67.76% 0.1284 -0.1726)
OKLCHoklch(67.76% 0.215 306.6)
XYZxyz(43.1296, 27.8395, 96.0109)
Luminance0.2784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AFD #ADFD6A
analogous
#706AFD #BA6AFD #FD6AF7
triadic
#BA6AFD #FDBA6A #6AFDBA
tetradic
#BA6AFD #FD706A #ADFD6A #6AF7FD
square
#BA6AFD #FD706A #ADFD6A #6AF7FD
split-complementary
#BA6AFD #F7FD6A #6AFD70
monochromatic
#8003E9 #9E2EFC #BA6AFD #D6A6FE #F1E1FF

Accessibility & contrast

On white

3.20
#BA6AFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#BA6AFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AFD
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AFD#FFFFFF#000000##000000
##BA6AFD1.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C8DFF
Deuteranopia (green-blind)
#5091FA
Tritanopia (blue-blind)
#AF87AA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6afd;
/* rgb */ color: rgb(186, 106, 253);
/* oklch */ color: oklch(67.8% 0.215 306.6);
Tailwind
colors: {
  custom: {
    50: '#d298ff',
    500: '#ba6afd',
    950: '#000000',
  },
}
SCSS
$custom: #ba6afd;
$custom-light: #d298ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6afd",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 253
  },
  "hsl": {
    "h": 272.653,
    "s": 97.351,
    "l": 70.392
  },
  "oklch": {
    "l": 0.6776,
    "c": 0.21512,
    "h": 306.6
  },
  "luminance": 0.27839
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA6AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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