#BA68EB#BA68EB

#BA68EB is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.4% C 0.199 H 311.0°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#BA68EB
RGBrgb(186, 104, 235)
HSLhsl(278, 77%, 66%)
HSVhsv(278, 56%, 92%)
CMYKcmyk(20.9%, 55.7%, 0%, 7.8%)
CIE-LABlab(58.36, 54.79, -53.43)
CIE-LCHlch(58.36, 76.53, 315.72°)
OKLaboklab(66.42% 0.1305 -0.1499)
OKLCHoklch(66.42% 0.199 311)
XYZxyz(40.1927, 26.3387, 81.5477)
Luminance0.2634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA68EB #99EB68
analogous
#7968EB #BA68EB #EB68DB
triadic
#BA68EB #EBBA68 #68EBBA
tetradic
#BA68EB #EB7968 #99EB68 #68DBEB
square
#BA68EB #EB7968 #99EB68 #68DBEB
split-complementary
#BA68EB #DBEB68 #68EB79
monochromatic
#8119BF #A132E4 #BA68EB #D39EF2 #EBD4F9

Accessibility & contrast

On white

3.35
#BA68EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#BA68EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA68EB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA68EB#FFFFFF#000000##000000
##BA68EB1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F88EF
Deuteranopia (green-blind)
#5D8EE8
Tritanopia (blue-blind)
#B47FA0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ba68eb;
/* rgb */ color: rgb(186, 104, 235);
/* oklch */ color: oklch(66.4% 0.199 311.0);
Tailwind
colors: {
  custom: {
    50: '#d296f2',
    500: '#ba68eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba68eb;
$custom-light: #d296f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba68eb",
  "rgb": {
    "r": 186,
    "g": 104,
    "b": 235
  },
  "hsl": {
    "h": 277.557,
    "s": 76.608,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6642,
    "c": 0.19871,
    "h": 311
  },
  "luminance": 0.26338
}

Semantic roles & 50–950 ramp

primary
#BA68EB
secondary
#D2EDC2
accent
#D90D59
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA68EB

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

Preview Lab → · Contrast checker → · Palette generator →

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