#BA68EC#BA68EC

#BA68EC is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.5% C 0.200 H 310.8°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#BA68EC
RGBrgb(186, 104, 236)
HSLhsl(277, 78%, 67%)
HSVhsv(277, 56%, 93%)
CMYKcmyk(21.2%, 55.9%, 0%, 7.5%)
CIE-LABlab(58.41, 55.01, -53.90)
CIE-LCHlch(58.41, 77.01, 315.58°)
OKLaboklab(66.48% 0.1305 -0.1513)
OKLCHoklch(66.48% 0.2 310.8)
XYZxyz(40.3375, 26.3967, 82.3107)
Luminance0.2640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA68EC #9AEC68
analogous
#7868EC #BA68EC #EC68DC
triadic
#BA68EC #ECBA68 #68ECBA
tetradic
#BA68EC #EC7868 #9AEC68 #68DCEC
square
#BA68EC #EC7868 #9AEC68 #68DCEC
split-complementary
#BA68EC #DCEC68 #68EC78
monochromatic
#8118C1 #A132E5 #BA68EC #D39EF3 #ECD5FA

Accessibility & contrast

On white

3.34
#BA68EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#BA68EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA68EC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA68EC#FFFFFF#000000##000000
##BA68EC1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E89F0
Deuteranopia (green-blind)
#5D8EE9
Tritanopia (blue-blind)
#B480A0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ba68ec;
/* rgb */ color: rgb(186, 104, 236);
/* oklch */ color: oklch(66.5% 0.200 310.8);
Tailwind
colors: {
  custom: {
    50: '#d296f3',
    500: '#ba68ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba68ec;
$custom-light: #d296f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba68ec",
  "rgb": {
    "r": 186,
    "g": 104,
    "b": 236
  },
  "hsl": {
    "h": 277.273,
    "s": 77.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.66478,
    "c": 0.19977,
    "h": 310.8
  },
  "luminance": 0.26396
}

Semantic roles & 50–950 ramp

primary
#BA68EC
secondary
#D3EDC3
accent
#DA0C5A
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA68EC

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

Preview Lab → · Contrast checker → · Palette generator →

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