#BA78DF#BA78DF

#BA78DF is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.1% C 0.160 H 312.4°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#BA78DF
RGBrgb(186, 120, 223)
HSLhsl(278, 62%, 67%)
HSVhsv(278, 46%, 87%)
CMYKcmyk(16.6%, 46.2%, 0%, 12.5%)
CIE-LABlab(60.96, 43.86, -42.61)
CIE-LCHlch(60.96, 61.15, 315.83°)
OKLaboklab(68.15% 0.108 -0.1185)
OKLCHoklch(68.15% 0.16 312.4)
XYZxyz(40.2832, 29.2006, 73.3119)
Luminance0.2920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78DF #9DDF78
analogous
#8778DF #BA78DF #DF78D0
triadic
#BA78DF #DFBA78 #78DFBA
tetradic
#BA78DF #DF8778 #9DDF78 #78D0DF
square
#BA78DF #DF8778 #9DDF78 #78D0DF
split-complementary
#BA78DF #D0DF78 #78DF87
monochromatic
#812AB2 #A147D3 #BA78DF #D3A9EB #EDDBF6

Accessibility & contrast

On white

3.07
#BA78DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#BA78DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78DF
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78DF#FFFFFF#000000##000000
##BA78DF1.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6290E3
Deuteranopia (green-blind)
#7495DC
Tritanopia (blue-blind)
#B688A1
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba78df;
/* rgb */ color: rgb(186, 120, 223);
/* oklch */ color: oklch(68.1% 0.160 312.4);
Tailwind
colors: {
  custom: {
    50: '#d0a0e9',
    500: '#ba78df',
    950: '#000000',
  },
}
SCSS
$custom: #ba78df;
$custom-light: #d0a0e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78df",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 223
  },
  "hsl": {
    "h": 278.447,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.68146,
    "c": 0.16034,
    "h": 312.4
  },
  "luminance": 0.292
}

Semantic roles & 50–950 ramp

primary
#BA78DF
secondary
#D5EAC9
accent
#C91C5A
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA78DF

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

Preview Lab → · Contrast checker → · Palette generator →

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