#BA68E6#BA68E6

#BA68E6 is a light, vivid violet. Relative luminance 0.261; OKLCH L 66.1% C 0.193 H 312.3°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#BA68E6
RGBrgb(186, 104, 230)
HSLhsl(279, 72%, 65%)
HSVhsv(279, 55%, 90%)
CMYKcmyk(19.1%, 54.8%, 0%, 9.8%)
CIE-LABlab(58.09, 53.72, -51.06)
CIE-LCHlch(58.09, 74.11, 316.45°)
OKLaboklab(66.14% 0.1302 -0.143)
OKLCHoklch(66.14% 0.193 312.3)
XYZxyz(39.4804, 26.0538, 77.7967)
Luminance0.2605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA68E6 #94E668
analogous
#7B68E6 #BA68E6 #E668D3
triadic
#BA68E6 #E6BA68 #68E6BA
tetradic
#BA68E6 #E67B68 #94E668 #68D3E6
square
#BA68E6 #E67B68 #94E668 #68D3E6
split-complementary
#BA68E6 #D3E668 #68E67B
monochromatic
#811EB6 #A233DD #BA68E6 #D29DEF #EAD1F7

Accessibility & contrast

On white

3.38
#BA68E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#BA68E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA68E6
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA68E6#FFFFFF#000000##000000
##BA68E61.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4487EA
Deuteranopia (green-blind)
#618DE3
Tritanopia (blue-blind)
#B57E9D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ba68e6;
/* rgb */ color: rgb(186, 104, 230);
/* oklch */ color: oklch(66.1% 0.193 312.3);
Tailwind
colors: {
  custom: {
    50: '#d196ee',
    500: '#ba68e6',
    950: '#000000',
  },
}
SCSS
$custom: #ba68e6;
$custom-light: #d196ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba68e6",
  "rgb": {
    "r": 186,
    "g": 104,
    "b": 230
  },
  "hsl": {
    "h": 279.048,
    "s": 71.591,
    "l": 65.49
  },
  "oklch": {
    "l": 0.66136,
    "c": 0.19338,
    "h": 312.3
  },
  "luminance": 0.26053
}

Semantic roles & 50–950 ramp

primary
#BA68E6
secondary
#CFEAC0
accent
#D41256
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA68E6

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

Preview Lab → · Contrast checker → · Palette generator →

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