#BA78EE#BA78EE

#BA78EE is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.9% C 0.177 H 308.2°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#BA78EE
RGBrgb(186, 120, 238)
HSLhsl(274, 78%, 70%)
HSVhsv(274, 50%, 93%)
CMYKcmyk(21.8%, 49.6%, 0%, 6.7%)
CIE-LABlab(61.69, 47.14, -49.79)
CIE-LCHlch(61.69, 68.57, 313.43°)
OKLaboklab(68.93% 0.1099 -0.1394)
OKLCHoklch(68.93% 0.177 308.2)
XYZxyz(42.3958, 30.0456, 84.4383)
Luminance0.3004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78EE #ACEE78
analogous
#7F78EE #BA78EE #EE78E7
triadic
#BA78EE #EEBA78 #78EEBA
tetradic
#BA78EE #EE7F78 #ACEE78 #78E7EE
square
#BA78EE #EE7F78 #ACEE78 #78E7EE
split-complementary
#BA78EE #E7EE78 #78EE7F
monochromatic
#811AD1 #9E42E7 #BA78EE #D6AEF5 #F1E4FC

Accessibility & contrast

On white

3.00
#BA78EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#BA78EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78EE
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78EE#FFFFFF#000000##000000
##BA78EE1.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5892F2
Deuteranopia (green-blind)
#6B96EB
Tritanopia (blue-blind)
#B38CA8
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba78ee;
/* rgb */ color: rgb(186, 120, 238);
/* oklch */ color: oklch(68.9% 0.177 308.2);
Tailwind
colors: {
  custom: {
    50: '#d1a1f4',
    500: '#ba78ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba78ee;
$custom-light: #d1a1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78ee",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 273.559,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.68933,
    "c": 0.17746,
    "h": 308.2
  },
  "luminance": 0.30045
}

Semantic roles & 50–950 ramp

primary
#BA78EE
secondary
#DFF1D1
accent
#DA0C67
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA78EE

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

Preview Lab → · Contrast checker → · Palette generator →

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