#BA68EA#BA68EA

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

Color values

HEX#BA68EA
RGBrgb(186, 104, 234)
HSLhsl(278, 76%, 66%)
HSVhsv(278, 56%, 92%)
CMYKcmyk(20.5%, 55.6%, 0%, 8.2%)
CIE-LABlab(58.30, 54.57, -52.95)
CIE-LCHlch(58.30, 76.04, 315.86°)
OKLaboklab(66.36% 0.1304 -0.1485)
OKLCHoklch(66.36% 0.198 311.3)
XYZxyz(40.0486, 26.2811, 80.7890)
Luminance0.2628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA68EA #98EA68
analogous
#7968EA #BA68EA #EA68D9
triadic
#BA68EA #EABA68 #68EABA
tetradic
#BA68EA #EA7968 #98EA68 #68D9EA
square
#BA68EA #EA7968 #98EA68 #68D9EA
split-complementary
#BA68EA #D9EA68 #68EA79
monochromatic
#811ABD #A132E3 #BA68EA #D39EF1 #EBD3F9

Accessibility & contrast

On white

3.36
#BA68EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#BA68EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA68EA
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA68EA#FFFFFF#000000##000000
##BA68EA1.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4088EE
Deuteranopia (green-blind)
#5E8EE7
Tritanopia (blue-blind)
#B47F9F
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ba68ea;
/* rgb */ color: rgb(186, 104, 234);
/* oklch */ color: oklch(66.4% 0.198 311.3);
Tailwind
colors: {
  custom: {
    50: '#d296f1',
    500: '#ba68ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba68ea;
$custom-light: #d296f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba68ea",
  "rgb": {
    "r": 186,
    "g": 104,
    "b": 234
  },
  "hsl": {
    "h": 277.846,
    "s": 75.581,
    "l": 66.275
  },
  "oklch": {
    "l": 0.66363,
    "c": 0.19763,
    "h": 311.3
  },
  "luminance": 0.2628
}

Semantic roles & 50–950 ramp

primary
#BA68EA
secondary
#D1ECC2
accent
#D80E58
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA68EA

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

Preview Lab → · Contrast checker → · Palette generator →

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