#BA78EA#BA78EA

#BA78EA is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.7% C 0.173 H 309.3°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#BA78EA
RGBrgb(186, 120, 234)
HSLhsl(275, 73%, 69%)
HSVhsv(275, 49%, 92%)
CMYKcmyk(20.5%, 48.7%, 0%, 8.2%)
CIE-LABlab(61.49, 46.26, -47.89)
CIE-LCHlch(61.49, 66.58, 314.00°)
OKLaboklab(68.72% 0.1094 -0.1338)
OKLCHoklch(68.72% 0.173 309.3)
XYZxyz(41.8146, 29.8132, 81.3777)
Luminance0.2981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78EA #A8EA78
analogous
#8178EA #BA78EA #EA78E1
triadic
#BA78EA #EABA78 #78EABA
tetradic
#BA78EA #EA8178 #A8EA78 #78E1EA
square
#BA78EA #EA8178 #A8EA78 #78E1EA
split-complementary
#BA78EA #E1EA78 #78EA81
monochromatic
#811FC8 #9F43E2 #BA78EA #D5ADF2 #F0E2FA

Accessibility & contrast

On white

3.02
#BA78EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#BA78EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78EA
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78EA#FFFFFF#000000##000000
##BA78EA1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B92EE
Deuteranopia (green-blind)
#6E96E7
Tritanopia (blue-blind)
#B48BA6
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba78ea;
/* rgb */ color: rgb(186, 120, 234);
/* oklch */ color: oklch(68.7% 0.173 309.3);
Tailwind
colors: {
  custom: {
    50: '#d1a1f1',
    500: '#ba78ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba78ea;
$custom-light: #d1a1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78ea",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 274.737,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68718,
    "c": 0.17287,
    "h": 309.3
  },
  "luminance": 0.29813
}

Semantic roles & 50–950 ramp

primary
#BA78EA
secondary
#DCEFCE
accent
#D51063
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA78EA

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

Preview Lab → · Contrast checker → · Palette generator →

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