#BA78F6#BA78F6

#BA78F6 is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.4% C 0.187 H 306.3°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#BA78F6
RGBrgb(186, 120, 246)
HSLhsl(271, 88%, 72%)
HSVhsv(271, 51%, 96%)
CMYKcmyk(24.4%, 51.2%, 0%, 3.5%)
CIE-LABlab(62.11, 48.94, -53.56)
CIE-LCHlch(62.11, 72.56, 312.42°)
OKLaboklab(69.37% 0.1106 -0.1504)
OKLCHoklch(69.37% 0.187 306.3)
XYZxyz(43.5973, 30.5262, 90.7663)
Luminance0.3053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78F6 #B4F678
analogous
#7B78F6 #BA78F6 #F678F3
triadic
#BA78F6 #F6BA78 #78F6BA
tetradic
#BA78F6 #F67B78 #B4F678 #78F3F6
square
#BA78F6 #F67B78 #B4F678 #78F3F6
split-complementary
#BA78F6 #F3F678 #78F67B
monochromatic
#7F0FE4 #9D3FF2 #BA78F6 #D7B1FA #F0E2FD

Accessibility & contrast

On white

2.96
#BA78F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#BA78F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78F6
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78F6#FFFFFF#000000##000000
##BA78F61.002.967.117.11
#FFFFFF2.961.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5294FA
Deuteranopia (green-blind)
#6697F3
Tritanopia (blue-blind)
#B18EAC
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba78f6;
/* rgb */ color: rgb(186, 120, 246);
/* oklch */ color: oklch(69.4% 0.187 306.3);
Tailwind
colors: {
  custom: {
    50: '#d1a1fa',
    500: '#ba78f6',
    950: '#000000',
  },
}
SCSS
$custom: #ba78f6;
$custom-light: #d1a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78f6",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 271.429,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69372,
    "c": 0.18664,
    "h": 306.3
  },
  "luminance": 0.30526
}

Semantic roles & 50–950 ramp

primary
#BA78F6
secondary
#E4F5D5
accent
#E4016D
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA78F6

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

Preview Lab → · Contrast checker → · Palette generator →

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