#BA78EB#BA78EB

#BA78EB is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.8% C 0.174 H 309.0°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#BA78EB
RGBrgb(186, 120, 235)
HSLhsl(274, 74%, 70%)
HSVhsv(274, 49%, 92%)
CMYKcmyk(20.9%, 48.9%, 0%, 7.8%)
CIE-LABlab(61.54, 46.48, -48.37)
CIE-LCHlch(61.54, 67.08, 313.86°)
OKLaboklab(68.77% 0.1095 -0.1352)
OKLCHoklch(68.77% 0.174 309)
XYZxyz(41.9587, 29.8708, 82.1364)
Luminance0.2987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78EB #A9EB78
analogous
#8178EB #BA78EB #EB78E3
triadic
#BA78EB #EBBA78 #78EBBA
tetradic
#BA78EB #EB8178 #A9EB78 #78E3EB
square
#BA78EB #EB8178 #A9EB78 #78E3EB
split-complementary
#BA78EB #E3EB78 #78EB81
monochromatic
#811ECB #9F43E3 #BA78EB #D5ADF3 #F0E3FB

Accessibility & contrast

On white

3.01
#BA78EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#BA78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78EB
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78EB#FFFFFF#000000##000000
##BA78EB1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A92EF
Deuteranopia (green-blind)
#6D96E8
Tritanopia (blue-blind)
#B38BA7
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba78eb;
/* rgb */ color: rgb(186, 120, 235);
/* oklch */ color: oklch(68.8% 0.174 309.0);
Tailwind
colors: {
  custom: {
    50: '#d1a1f2',
    500: '#ba78eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba78eb;
$custom-light: #d1a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78eb",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 274.435,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.68772,
    "c": 0.17401,
    "h": 309
  },
  "luminance": 0.2987
}

Semantic roles & 50–950 ramp

primary
#BA78EB
secondary
#DDF0CF
accent
#D60F64
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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