#BA78EF#BA78EF

#BA78EF is a light, vivid violet. Relative luminance 0.301; OKLCH L 69.0% C 0.179 H 308.0°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#BA78EF
RGBrgb(186, 120, 239)
HSLhsl(273, 79%, 70%)
HSVhsv(273, 50%, 94%)
CMYKcmyk(22.2%, 49.8%, 0%, 6.3%)
CIE-LABlab(61.74, 47.37, -50.27)
CIE-LCHlch(61.74, 69.07, 313.30°)
OKLaboklab(68.99% 0.11 -0.1407)
OKLCHoklch(68.99% 0.179 308)
XYZxyz(42.5431, 30.1046, 85.2142)
Luminance0.3010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78EF #ADEF78
analogous
#7E78EF #BA78EF #EF78E9
triadic
#BA78EF #EFBA78 #78EFBA
tetradic
#BA78EF #EF7E78 #ADEF78 #78E9EF
square
#BA78EF #EF7E78 #ADEF78 #78E9EF
split-complementary
#BA78EF #E9EF78 #78EF7E
monochromatic
#8019D4 #9E41E9 #BA78EF #D6AFF5 #F1E4FC

Accessibility & contrast

On white

2.99
#BA78EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#BA78EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78EF
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78EF#FFFFFF#000000##000000
##BA78EF1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5792F3
Deuteranopia (green-blind)
#6A96EC
Tritanopia (blue-blind)
#B28CA9
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba78ef;
/* rgb */ color: rgb(186, 120, 239);
/* oklch */ color: oklch(69.0% 0.179 308.0);
Tailwind
colors: {
  custom: {
    50: '#d1a1f5',
    500: '#ba78ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba78ef;
$custom-light: #d1a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78ef",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 273.277,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.68987,
    "c": 0.1786,
    "h": 308
  },
  "luminance": 0.30104
}

Semantic roles & 50–950 ramp

primary
#BA78EF
secondary
#E0F2D1
accent
#DB0A67
background
#FDFAFF
surface
#FAF3FE
border
#D3CDD6
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA78EF

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

Preview Lab → · Contrast checker → · Palette generator →

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