#BA6EEB#BA6EEB

#BA6EEB is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.3% C 0.190 H 310.3°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#BA6EEB
RGBrgb(186, 110, 235)
HSLhsl(276, 76%, 68%)
HSVhsv(276, 53%, 92%)
CMYKcmyk(20.9%, 53.2%, 0%, 7.8%)
CIE-LABlab(59.52, 51.73, -51.58)
CIE-LCHlch(59.52, 73.05, 315.08°)
OKLaboklab(67.27% 0.1228 -0.1445)
OKLCHoklch(67.27% 0.19 310.3)
XYZxyz(40.8182, 27.5899, 81.7563)
Luminance0.2759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6EEB #9FEB6E
analogous
#7B6EEB #BA6EEB #EB6EDE
triadic
#BA6EEB #EBBA6E #6EEBBA
tetradic
#BA6EEB #EB7B6E #9FEB6E #6EDEEB
square
#BA6EEB #EB7B6E #9FEB6E #6EDEEB
split-complementary
#BA6EEB #DEEB6E #6EEB7B
monochromatic
#821BC4 #A038E4 #BA6EEB #D4A4F2 #EDDAFA

Accessibility & contrast

On white

3.22
#BA6EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#BA6EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6EEB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6EEB#FFFFFF#000000##000000
##BA6EEB1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8CEF
Deuteranopia (green-blind)
#6391E8
Tritanopia (blue-blind)
#B484A2
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba6eeb;
/* rgb */ color: rgb(186, 110, 235);
/* oklch */ color: oklch(67.3% 0.190 310.3);
Tailwind
colors: {
  custom: {
    50: '#d19af2',
    500: '#ba6eeb',
    950: '#000000',
  },
}
SCSS
$custom: #ba6eeb;
$custom-light: #d19af2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6eeb",
  "rgb": {
    "r": 186,
    "g": 110,
    "b": 235
  },
  "hsl": {
    "h": 276.48,
    "s": 75.758,
    "l": 67.647
  },
  "oklch": {
    "l": 0.67272,
    "c": 0.18963,
    "h": 310.3
  },
  "luminance": 0.27589
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA6EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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