#BA6AEC#BA6AEC

#BA6AEC is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.8% C 0.197 H 310.6°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#BA6AEC
RGBrgb(186, 106, 236)
HSLhsl(277, 77%, 67%)
HSVhsv(277, 55%, 93%)
CMYKcmyk(21.2%, 55.1%, 0%, 7.5%)
CIE-LABlab(58.79, 53.99, -53.29)
CIE-LCHlch(58.79, 75.86, 315.38°)
OKLaboklab(66.76% 0.128 -0.1495)
OKLCHoklch(66.76% 0.197 310.6)
XYZxyz(40.5412, 26.8041, 82.3786)
Luminance0.2680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AEC #9CEC6A
analogous
#796AEC #BA6AEC #EC6ADD
triadic
#BA6AEC #ECBA6A #6AECBA
tetradic
#BA6AEC #EC796A #9CEC6A #6ADDEC
square
#BA6AEC #EC796A #9CEC6A #6ADDEC
split-complementary
#BA6AEC #DDEC6A #6AEC79
monochromatic
#8119C3 #A134E5 #BA6AEC #D3A0F3 #ECD7FA

Accessibility & contrast

On white

3.30
#BA6AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#BA6AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AEC
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AEC#FFFFFF#000000##000000
##BA6AEC1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#428AF0
Deuteranopia (green-blind)
#5F8FE9
Tritanopia (blue-blind)
#B481A1
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba6aec;
/* rgb */ color: rgb(186, 106, 236);
/* oklch */ color: oklch(66.8% 0.197 310.6);
Tailwind
colors: {
  custom: {
    50: '#d298f3',
    500: '#ba6aec',
    950: '#000000',
  },
}
SCSS
$custom: #ba6aec;
$custom-light: #d298f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6aec",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 236
  },
  "hsl": {
    "h": 276.923,
    "s": 77.381,
    "l": 67.059
  },
  "oklch": {
    "l": 0.66757,
    "c": 0.19678,
    "h": 310.6
  },
  "luminance": 0.26803
}

Semantic roles & 50–950 ramp

primary
#BA6AEC
secondary
#D4EEC4
accent
#DA0C5B
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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