#BA68ED#BA68ED

#BA68ED is a light, highly saturated violet. Relative luminance 0.265; OKLCH L 66.5% C 0.201 H 310.5°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#BA68ED
RGBrgb(186, 104, 237)
HSLhsl(277, 79%, 67%)
HSVhsv(277, 56%, 93%)
CMYKcmyk(21.5%, 56.1%, 0%, 7.1%)
CIE-LABlab(58.47, 55.22, -54.37)
CIE-LCHlch(58.47, 77.49, 315.45°)
OKLaboklab(66.54% 0.1305 -0.1526)
OKLCHoklch(66.54% 0.201 310.5)
XYZxyz(40.4832, 26.4550, 83.0780)
Luminance0.2645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA68ED #9BED68
analogous
#7868ED #BA68ED #ED68DE
triadic
#BA68ED #EDBA68 #68EDBA
tetradic
#BA68ED #ED7868 #9BED68 #68DEED
square
#BA68ED #ED7868 #9BED68 #68DEED
split-complementary
#BA68ED #DEED68 #68ED78
monochromatic
#8117C3 #A131E6 #BA68ED #D39FF4 #ECD5FA

Accessibility & contrast

On white

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

On black

6.29
#BA68ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA68ED
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA68ED#FFFFFF#000000##000000
##BA68ED1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D89F1
Deuteranopia (green-blind)
#5C8EEA
Tritanopia (blue-blind)
#B480A1
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba68ed;
/* rgb */ color: rgb(186, 104, 237);
/* oklch */ color: oklch(66.5% 0.201 310.5);
Tailwind
colors: {
  custom: {
    50: '#d296f3',
    500: '#ba68ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba68ed;
$custom-light: #d296f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba68ed",
  "rgb": {
    "r": 186,
    "g": 104,
    "b": 237
  },
  "hsl": {
    "h": 276.992,
    "s": 78.698,
    "l": 66.863
  },
  "oklch": {
    "l": 0.66536,
    "c": 0.20083,
    "h": 310.5
  },
  "luminance": 0.26454
}

Semantic roles & 50–950 ramp

primary
#BA68ED
secondary
#D3EEC3
accent
#DB0B5A
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA68ED

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

Preview Lab → · Contrast checker → · Palette generator →

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