#BA78F5#BA78F5

#BA78F5 is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.3% C 0.185 H 306.6°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#BA78F5
RGBrgb(186, 120, 245)
HSLhsl(272, 86%, 72%)
HSVhsv(272, 51%, 96%)
CMYKcmyk(24.1%, 51%, 0%, 3.9%)
CIE-LABlab(62.05, 48.72, -53.09)
CIE-LCHlch(62.05, 72.06, 312.54°)
OKLaboklab(69.32% 0.1105 -0.149)
OKLCHoklch(69.32% 0.185 306.6)
XYZxyz(43.4442, 30.4650, 89.9601)
Luminance0.3046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78F5 #B3F578
analogous
#7C78F5 #BA78F5 #F578F2
triadic
#BA78F5 #F5BA78 #78F5BA
tetradic
#BA78F5 #F57C78 #B3F578 #78F2F5
square
#BA78F5 #F57C78 #B3F578 #78F2F5
split-complementary
#BA78F5 #F2F578 #78F57C
monochromatic
#7F11E2 #9D3FF1 #BA78F5 #D7B1F9 #F0E3FD

Accessibility & contrast

On white

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

On black

7.09
#BA78F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78F5
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78F5#FFFFFF#000000##000000
##BA78F51.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5294F9
Deuteranopia (green-blind)
#6696F2
Tritanopia (blue-blind)
#B18EAB
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba78f5;
/* rgb */ color: rgb(186, 120, 245);
/* oklch */ color: oklch(69.3% 0.185 306.6);
Tailwind
colors: {
  custom: {
    50: '#d1a1f9',
    500: '#ba78f5',
    950: '#000000',
  },
}
SCSS
$custom: #ba78f5;
$custom-light: #d1a1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78f5",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 245
  },
  "hsl": {
    "h": 271.68,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.69317,
    "c": 0.18549,
    "h": 306.6
  },
  "luminance": 0.30465
}

Semantic roles & 50–950 ramp

primary
#BA78F5
secondary
#E4F4D4
accent
#E3036C
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA78F5

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

Preview Lab → · Contrast checker → · Palette generator →

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