#BA78FA#BA78FA

#BA78FA is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.6% C 0.191 H 305.4°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#BA78FA
RGBrgb(186, 120, 250)
HSLhsl(270, 93%, 73%)
HSVhsv(270, 52%, 98%)
CMYKcmyk(25.6%, 52%, 0%, 2%)
CIE-LABlab(62.32, 49.85, -55.43)
CIE-LCHlch(62.32, 74.55, 311.97°)
OKLaboklab(69.6% 0.1109 -0.1558)
OKLCHoklch(69.6% 0.191 305.4)
XYZxyz(44.2178, 30.7745, 94.0345)
Luminance0.3077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78FA #B8FA78
analogous
#7978FA #BA78FA #FA78F9
triadic
#BA78FA #FABA78 #78FABA
tetradic
#BA78FA #FA7978 #B8FA78 #78F9FA
square
#BA78FA #FA7978 #B8FA78 #78F9FA
split-complementary
#BA78FA #F9FA78 #78FA79
monochromatic
#7E09EF #9C3DF8 #BA78FA #D8B3FC #F0E1FE

Accessibility & contrast

On white

2.94
#BA78FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#BA78FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78FA
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78FA#FFFFFF#000000##000000
##BA78FA1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E95FE
Deuteranopia (green-blind)
#6397F7
Tritanopia (blue-blind)
#AF90AE
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba78fa;
/* rgb */ color: rgb(186, 120, 250);
/* oklch */ color: oklch(69.6% 0.191 305.4);
Tailwind
colors: {
  custom: {
    50: '#d2a1fc',
    500: '#ba78fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba78fa;
$custom-light: #d2a1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78fa",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 250
  },
  "hsl": {
    "h": 270.462,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69597,
    "c": 0.19123,
    "h": 305.4
  },
  "luminance": 0.30774
}

Semantic roles & 50–950 ramp

primary
#BA78FA
secondary
#E5F6D5
accent
#E60071
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA78FA

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

Preview Lab → · Contrast checker → · Palette generator →

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