#BA6BEE#BA6BEE

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

Color values

HEX#BA6BEE
RGBrgb(186, 107, 238)
HSLhsl(276, 79%, 68%)
HSVhsv(276, 55%, 93%)
CMYKcmyk(21.8%, 55%, 0%, 6.7%)
CIE-LABlab(59.09, 53.92, -53.92)
CIE-LCHlch(59.09, 76.26, 315.00°)
OKLaboklab(67.01% 0.1268 -0.1514)
OKLCHoklch(67.01% 0.197 309.9)
XYZxyz(40.9371, 27.1283, 83.9521)
Luminance0.2713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BEE #9FEE6B
analogous
#786BEE #BA6BEE #EE6BE1
triadic
#BA6BEE #EEBA6B #6BEEBA
tetradic
#BA6BEE #EE786B #9FEE6B #6BE1EE
square
#BA6BEE #EE786B #9FEE6B #6BE1EE
split-complementary
#BA6BEE #E1EE6B #6BEE78
monochromatic
#8217C8 #A034E8 #BA6BEE #D4A2F4 #EDD9FB

Accessibility & contrast

On white

3.27
#BA6BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA6BEE#FFFFFF#000000##000000
##BA6BEE1.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#428BF2
Deuteranopia (green-blind)
#5E90EB
Tritanopia (blue-blind)
#B382A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6bee;
/* rgb */ color: rgb(186, 107, 238);
/* oklch */ color: oklch(67.0% 0.197 309.9);
Tailwind
colors: {
  custom: {
    50: '#d298f4',
    500: '#ba6bee',
    950: '#000000',
  },
}
SCSS
$custom: #ba6bee;
$custom-light: #d298f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6bee",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 238
  },
  "hsl": {
    "h": 276.183,
    "s": 79.394,
    "l": 67.647
  },
  "oklch": {
    "l": 0.67013,
    "c": 0.19744,
    "h": 309.9
  },
  "luminance": 0.27128
}

Semantic roles & 50–950 ramp

primary
#BA6BEE
secondary
#D6EFC6
accent
#DC0A5D
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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