#BA78DC#BA78DC

#BA78DC is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.0% C 0.157 H 313.3°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#BA78DC
RGBrgb(186, 120, 220)
HSLhsl(280, 59%, 67%)
HSVhsv(280, 45%, 86%)
CMYKcmyk(15.5%, 45.5%, 0%, 13.7%)
CIE-LABlab(60.82, 43.22, -41.15)
CIE-LCHlch(60.82, 59.68, 316.40°)
OKLaboklab(68% 0.1076 -0.1143)
OKLCHoklch(68% 0.157 313.3)
XYZxyz(39.8823, 29.0402, 71.2007)
Luminance0.2904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78DC #9ADC78
analogous
#8878DC #BA78DC #DC78CC
triadic
#BA78DC #DCBA78 #78DCBA
tetradic
#BA78DC #DC8878 #9ADC78 #78CCDC
square
#BA78DC #DC8878 #9ADC78 #78CCDC
split-complementary
#BA78DC #CCDC78 #78DC88
monochromatic
#812DAD #A147CF #BA78DC #D3A9E9 #ECD9F5

Accessibility & contrast

On white

3.08
#BA78DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#BA78DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78DC
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78DC#FFFFFF#000000##000000
##BA78DC1.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#638FE0
Deuteranopia (green-blind)
#7594D9
Tritanopia (blue-blind)
#B787A0
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba78dc;
/* rgb */ color: rgb(186, 120, 220);
/* oklch */ color: oklch(68.0% 0.157 313.3);
Tailwind
colors: {
  custom: {
    50: '#d0a0e7',
    500: '#ba78dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba78dc;
$custom-light: #d0a0e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78dc",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 279.6,
    "s": 58.824,
    "l": 66.667
  },
  "oklch": {
    "l": 0.67995,
    "c": 0.15695,
    "h": 313.3
  },
  "luminance": 0.29039
}

Semantic roles & 50–950 ramp

primary
#BA78DC
secondary
#D3E8C8
accent
#C61F58
background
#FDFAFE
surface
#FAF3FC
border
#D3CDD5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA78DC

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

Preview Lab → · Contrast checker → · Palette generator →

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