#BA6CEB#BA6CEB

#BA6CEB is a light, vivid violet. Relative luminance 0.272; OKLCH L 67.0% C 0.193 H 310.6°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#BA6CEB
RGBrgb(186, 108, 235)
HSLhsl(277, 76%, 67%)
HSVhsv(277, 54%, 92%)
CMYKcmyk(20.9%, 54%, 0%, 7.8%)
CIE-LABlab(59.13, 52.76, -52.20)
CIE-LCHlch(59.13, 74.22, 315.30°)
OKLaboklab(66.98% 0.1253 -0.1463)
OKLCHoklch(66.98% 0.193 310.6)
XYZxyz(40.6049, 27.1632, 81.6851)
Luminance0.2716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6CEB #9DEB6C
analogous
#7A6CEB #BA6CEB #EB6CDD
triadic
#BA6CEB #EBBA6C #6CEBBA
tetradic
#BA6CEB #EB7A6C #9DEB6C #6CDDEB
square
#BA6CEB #EB7A6C #9DEB6C #6CDDEB
split-complementary
#BA6CEB #DDEB6C #6CEB7A
monochromatic
#811AC2 #A136E4 #BA6CEB #D3A2F2 #EDD8FA

Accessibility & contrast

On white

3.26
#BA6CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#BA6CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6CEB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6CEB#FFFFFF#000000##000000
##BA6CEB1.003.266.436.43
#FFFFFF3.261.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#478BEF
Deuteranopia (green-blind)
#6190E8
Tritanopia (blue-blind)
#B482A1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6ceb;
/* rgb */ color: rgb(186, 108, 235);
/* oklch */ color: oklch(67.0% 0.193 310.6);
Tailwind
colors: {
  custom: {
    50: '#d199f2',
    500: '#ba6ceb',
    950: '#000000',
  },
}
SCSS
$custom: #ba6ceb;
$custom-light: #d199f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6ceb",
  "rgb": {
    "r": 186,
    "g": 108,
    "b": 235
  },
  "hsl": {
    "h": 276.85,
    "s": 76.048,
    "l": 67.255
  },
  "oklch": {
    "l": 0.66984,
    "c": 0.19268,
    "h": 310.6
  },
  "luminance": 0.27162
}

Semantic roles & 50–950 ramp

primary
#BA6CEB
secondary
#D5EDC5
accent
#D80D5C
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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