#BA6AEB#BA6AEB

#BA6AEB is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.7% C 0.196 H 310.8°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#BA6AEB
RGBrgb(186, 106, 235)
HSLhsl(277, 76%, 67%)
HSVhsv(277, 55%, 92%)
CMYKcmyk(20.9%, 54.9%, 0%, 7.8%)
CIE-LABlab(58.74, 53.78, -52.82)
CIE-LCHlch(58.74, 75.38, 315.52°)
OKLaboklab(66.7% 0.1279 -0.1481)
OKLCHoklch(66.7% 0.196 310.8)
XYZxyz(40.3964, 26.7461, 81.6156)
Luminance0.2675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AEB #9BEB6A
analogous
#7A6AEB #BA6AEB #EB6ADC
triadic
#BA6AEB #EBBA6A #6AEBBA
tetradic
#BA6AEB #EB7A6A #9BEB6A #6ADCEB
square
#BA6AEB #EB7A6A #9BEB6A #6ADCEB
split-complementary
#BA6AEB #DCEB6A #6AEB7A
monochromatic
#811AC1 #A134E4 #BA6AEB #D3A0F2 #ECD6F9

Accessibility & contrast

On white

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

On black

6.35
#BA6AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AEB
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AEB#FFFFFF#000000##000000
##BA6AEB1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4389EF
Deuteranopia (green-blind)
#5F8FE8
Tritanopia (blue-blind)
#B481A1
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba6aeb;
/* rgb */ color: rgb(186, 106, 235);
/* oklch */ color: oklch(66.7% 0.196 310.8);
Tailwind
colors: {
  custom: {
    50: '#d298f2',
    500: '#ba6aeb',
    950: '#000000',
  },
}
SCSS
$custom: #ba6aeb;
$custom-light: #d298f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6aeb",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 235
  },
  "hsl": {
    "h": 277.209,
    "s": 76.331,
    "l": 66.863
  },
  "oklch": {
    "l": 0.667,
    "c": 0.19571,
    "h": 310.8
  },
  "luminance": 0.26745
}

Semantic roles & 50–950 ramp

primary
#BA6AEB
secondary
#D3EDC4
accent
#D90D5A
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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