#BA78F7#BA78F7

#BA78F7 is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.4% C 0.188 H 306.1°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#BA78F7
RGBrgb(186, 120, 247)
HSLhsl(271, 89%, 72%)
HSVhsv(271, 51%, 97%)
CMYKcmyk(24.7%, 51.4%, 0%, 3.1%)
CIE-LABlab(62.16, 49.17, -54.03)
CIE-LCHlch(62.16, 73.06, 312.30°)
OKLaboklab(69.43% 0.1107 -0.1517)
OKLCHoklch(69.43% 0.188 306.1)
XYZxyz(43.7512, 30.5878, 91.5768)
Luminance0.3059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78F7 #B5F778
analogous
#7B78F7 #BA78F7 #F778F5
triadic
#BA78F7 #F7BA78 #78F7BA
tetradic
#BA78F7 #F77B78 #B5F778 #78F5F7
square
#BA78F7 #F77B78 #B5F778 #78F5F7
split-complementary
#BA78F7 #F5F778 #78F77B
monochromatic
#7F0EE7 #9C3EF4 #BA78F7 #D8B2FA #F0E2FD

Accessibility & contrast

On white

2.95
#BA78F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#BA78F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78F7
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78F7#FFFFFF#000000##000000
##BA78F71.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5194FB
Deuteranopia (green-blind)
#6597F4
Tritanopia (blue-blind)
#B08FAC
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba78f7;
/* rgb */ color: rgb(186, 120, 247);
/* oklch */ color: oklch(69.4% 0.188 306.1);
Tailwind
colors: {
  custom: {
    50: '#d1a1fa',
    500: '#ba78f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba78f7;
$custom-light: #d1a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78f7",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 271.181,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69428,
    "c": 0.18778,
    "h": 306.1
  },
  "luminance": 0.30587
}

Semantic roles & 50–950 ramp

primary
#BA78F7
secondary
#E5F5D5
accent
#E5006E
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA78F7

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

Preview Lab → · Contrast checker → · Palette generator →

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