#BA6AE7#BA6AE7

#BA6AE7 is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.5% C 0.191 H 311.8°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#BA6AE7
RGBrgb(186, 106, 231)
HSLhsl(278, 72%, 66%)
HSVhsv(278, 54%, 91%)
CMYKcmyk(19.5%, 54.1%, 0%, 9.4%)
CIE-LABlab(58.53, 52.92, -50.92)
CIE-LCHlch(58.53, 73.44, 316.10°)
OKLaboklab(66.47% 0.1277 -0.1426)
OKLCHoklch(66.47% 0.191 311.8)
XYZxyz(39.8250, 26.5176, 78.6063)
Luminance0.2652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AE7 #97E76A
analogous
#7B6AE7 #BA6AE7 #E76AD5
triadic
#BA6AE7 #E7BA6A #6AE7BA
tetradic
#BA6AE7 #E77B6A #97E76A #6AD5E7
square
#BA6AE7 #E77B6A #97E76A #6AD5E7
split-complementary
#BA6AE7 #D5E76A #6AE77B
monochromatic
#811EB9 #A235DF #BA6AE7 #D29FEF #EBD3F8

Accessibility & contrast

On white

3.33
#BA6AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#BA6AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AE7
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AE7#FFFFFF#000000##000000
##BA6AE71.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4789EB
Deuteranopia (green-blind)
#628EE4
Tritanopia (blue-blind)
#B57F9F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba6ae7;
/* rgb */ color: rgb(186, 106, 231);
/* oklch */ color: oklch(66.5% 0.191 311.8);
Tailwind
colors: {
  custom: {
    50: '#d197ef',
    500: '#ba6ae7',
    950: '#000000',
  },
}
SCSS
$custom: #ba6ae7;
$custom-light: #d197ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6ae7",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 231
  },
  "hsl": {
    "h": 278.4,
    "s": 72.254,
    "l": 66.078
  },
  "oklch": {
    "l": 0.66474,
    "c": 0.19141,
    "h": 311.8
  },
  "luminance": 0.26517
}

Semantic roles & 50–950 ramp

primary
#BA6AE7
secondary
#D1EBC2
accent
#D41157
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA6AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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