#BA6AEA#BA6AEA

#BA6AEA is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.6% C 0.195 H 311.1°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#BA6AEA
RGBrgb(186, 106, 234)
HSLhsl(278, 75%, 67%)
HSVhsv(278, 55%, 92%)
CMYKcmyk(20.5%, 54.7%, 0%, 8.2%)
CIE-LABlab(58.68, 53.56, -52.35)
CIE-LCHlch(58.68, 74.89, 315.66°)
OKLaboklab(66.64% 0.1279 -0.1467)
OKLCHoklch(66.64% 0.195 311.1)
XYZxyz(40.2523, 26.6885, 80.8569)
Luminance0.2669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AEA #9AEA6A
analogous
#7A6AEA #BA6AEA #EA6ADA
triadic
#BA6AEA #EABA6A #6AEABA
tetradic
#BA6AEA #EA7A6A #9AEA6A #6ADAEA
square
#BA6AEA #EA7A6A #9AEA6A #6ADAEA
split-complementary
#BA6AEA #DAEA6A #6AEA7A
monochromatic
#811BBF #A134E2 #BA6AEA #D3A0F2 #ECD5F9

Accessibility & contrast

On white

3.31
#BA6AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#BA6AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AEA
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AEA#FFFFFF#000000##000000
##BA6AEA1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4489EE
Deuteranopia (green-blind)
#608FE7
Tritanopia (blue-blind)
#B480A0
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba6aea;
/* rgb */ color: rgb(186, 106, 234);
/* oklch */ color: oklch(66.6% 0.195 311.1);
Tailwind
colors: {
  custom: {
    50: '#d298f1',
    500: '#ba6aea',
    950: '#000000',
  },
}
SCSS
$custom: #ba6aea;
$custom-light: #d298f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6aea",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 234
  },
  "hsl": {
    "h": 277.5,
    "s": 75.294,
    "l": 66.667
  },
  "oklch": {
    "l": 0.66643,
    "c": 0.19463,
    "h": 311.1
  },
  "luminance": 0.26688
}

Semantic roles & 50–950 ramp

primary
#BA6AEA
secondary
#D3EDC3
accent
#D70E5A
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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