#BA78DD#BA78DD

#BA78DD is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.0% C 0.158 H 313.0°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#BA78DD
RGBrgb(186, 120, 221)
HSLhsl(279, 60%, 67%)
HSVhsv(279, 46%, 87%)
CMYKcmyk(15.8%, 45.7%, 0%, 13.3%)
CIE-LABlab(60.86, 43.43, -41.64)
CIE-LCHlch(60.86, 60.17, 316.21°)
OKLaboklab(68.05% 0.1077 -0.1157)
OKLCHoklch(68.05% 0.158 313)
XYZxyz(40.0151, 29.0934, 71.9002)
Luminance0.2909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78DD #9BDD78
analogous
#8878DD #BA78DD #DD78CE
triadic
#BA78DD #DDBA78 #78DDBA
tetradic
#BA78DD #DD8878 #9BDD78 #78CEDD
square
#BA78DD #DD8878 #9BDD78 #78CEDD
split-complementary
#BA78DD #CEDD78 #78DD88
monochromatic
#812CAF #A147D1 #BA78DD #D3A9E9 #ECDAF6

Accessibility & contrast

On white

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

On black

6.82
#BA78DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78DD
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78DD#FFFFFF#000000##000000
##BA78DD1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba78dd;
/* rgb */ color: rgb(186, 120, 221);
/* oklch */ color: oklch(68.0% 0.158 313.0);
Tailwind
colors: {
  custom: {
    50: '#d0a0e8',
    500: '#ba78dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba78dd;
$custom-light: #d0a0e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78dd",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 221
  },
  "hsl": {
    "h": 279.208,
    "s": 59.763,
    "l": 66.863
  },
  "oklch": {
    "l": 0.68045,
    "c": 0.15808,
    "h": 313
  },
  "luminance": 0.29093
}

Semantic roles & 50–950 ramp

primary
#BA78DD
secondary
#D3E9C8
accent
#C71E59
background
#FDFAFE
surface
#FAF3FC
border
#D3CDD5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA78DD

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

Preview Lab → · Contrast checker → · Palette generator →

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