#BA6DEC#BA6DEC

#BA6DEC is a light, vivid violet. Relative luminance 0.274; OKLCH L 67.2% C 0.192 H 310.2°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#BA6DEC
RGBrgb(186, 109, 236)
HSLhsl(276, 77%, 68%)
HSVhsv(276, 54%, 93%)
CMYKcmyk(21.2%, 53.8%, 0%, 7.5%)
CIE-LABlab(59.37, 52.46, -52.37)
CIE-LCHlch(59.37, 74.12, 315.05°)
OKLaboklab(67.18% 0.1241 -0.1468)
OKLCHoklch(67.18% 0.192 310.2)
XYZxyz(40.8558, 27.4333, 82.4835)
Luminance0.2743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DEC #9FEC6D
analogous
#7A6DEC #BA6DEC #EC6DDF
triadic
#BA6DEC #ECBA6D #6DECBA
tetradic
#BA6DEC #EC7A6D #9FEC6D #6DDFEC
square
#BA6DEC #EC7A6D #9FEC6D #6DDFEC
split-complementary
#BA6DEC #DFEC6D #6DEC7A
monochromatic
#821AC5 #A037E5 #BA6DEC #D4A3F3 #EDD9FA

Accessibility & contrast

On white

3.24
#BA6DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#BA6DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6DEC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6DEC#FFFFFF#000000##000000
##BA6DEC1.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#478BF0
Deuteranopia (green-blind)
#6190E9
Tritanopia (blue-blind)
#B483A2
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba6dec;
/* rgb */ color: rgb(186, 109, 236);
/* oklch */ color: oklch(67.2% 0.192 310.2);
Tailwind
colors: {
  custom: {
    50: '#d199f3',
    500: '#ba6dec',
    950: '#000000',
  },
}
SCSS
$custom: #ba6dec;
$custom-light: #d199f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6dec",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 236
  },
  "hsl": {
    "h": 276.378,
    "s": 76.97,
    "l": 67.647
  },
  "oklch": {
    "l": 0.67184,
    "c": 0.19225,
    "h": 310.2
  },
  "luminance": 0.27433
}

Semantic roles & 50–950 ramp

primary
#BA6DEC
secondary
#D6EEC7
accent
#D90C5D
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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