#BA6AFC#BA6AFC

#BA6AFC is a light, highly saturated violet. Relative luminance 0.278; OKLCH L 67.7% C 0.214 H 306.8°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#BA6AFC
RGBrgb(186, 106, 252)
HSLhsl(273, 96%, 70%)
HSVhsv(273, 58%, 99%)
CMYKcmyk(26.2%, 57.9%, 0%, 1.2%)
CIE-LABlab(59.69, 57.52, -60.73)
CIE-LCHlch(59.69, 83.65, 313.44°)
OKLaboklab(67.7% 0.1283 -0.1713)
OKLCHoklch(67.7% 0.214 306.8)
XYZxyz(42.9708, 27.7759, 95.1741)
Luminance0.2777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AFC #ACFC6A
analogous
#716AFC #BA6AFC #FC6AF5
triadic
#BA6AFC #FCBA6A #6AFCBA
tetradic
#BA6AFC #FC716A #ACFC6A #6AF5FC
square
#BA6AFC #FC716A #ACFC6A #6AF5FC
split-complementary
#BA6AFC #F5FC6A #6AFC71
monochromatic
#8105E7 #9E2EFB #BA6AFC #D6A6FD #F1E1FE

Accessibility & contrast

On white

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

On black

6.56
#BA6AFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AFC
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AFC#FFFFFF#000000##000000
##BA6AFC1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E8DFF
Deuteranopia (green-blind)
#5190F9
Tritanopia (blue-blind)
#AF86A9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6afc;
/* rgb */ color: rgb(186, 106, 252);
/* oklch */ color: oklch(67.7% 0.214 306.8);
Tailwind
colors: {
  custom: {
    50: '#d298fe',
    500: '#ba6afc',
    950: '#000000',
  },
}
SCSS
$custom: #ba6afc;
$custom-light: #d298fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6afc",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 252
  },
  "hsl": {
    "h": 272.877,
    "s": 96.053,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67699,
    "c": 0.21404,
    "h": 306.8
  },
  "luminance": 0.27775
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA6AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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