#BA78FB#BA78FB

#BA78FB is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.7% C 0.192 H 305.2°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#BA78FB
RGBrgb(186, 120, 251)
HSLhsl(270, 94%, 73%)
HSVhsv(270, 52%, 98%)
CMYKcmyk(25.9%, 52.2%, 0%, 1.6%)
CIE-LABlab(62.37, 50.08, -55.90)
CIE-LCHlch(62.37, 75.05, 311.86°)
OKLaboklab(69.65% 0.1109 -0.1572)
OKLCHoklch(69.65% 0.192 305.2)
XYZxyz(44.3750, 30.8373, 94.8625)
Luminance0.3084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78FB #B9FB78
analogous
#7878FB #BA78FB #FB78FB
triadic
#BA78FB #FBBA78 #78FBBA
tetradic
#BA78FB #FB7878 #B9FB78 #78FBFB
square
#BA78FB #FB7878 #B9FB78 #78FBFB
split-complementary
#BA78FB #FBFB78 #78FB78
monochromatic
#7D07F1 #9C3DF9 #BA78FB #D8B3FD #F0E1FE

Accessibility & contrast

On white

2.93
#BA78FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#BA78FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78FB
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78FB#FFFFFF#000000##000000
##BA78FB1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D95FF
Deuteranopia (green-blind)
#6297F8
Tritanopia (blue-blind)
#AF90AE
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba78fb;
/* rgb */ color: rgb(186, 120, 251);
/* oklch */ color: oklch(69.7% 0.192 305.2);
Tailwind
colors: {
  custom: {
    50: '#d2a1fd',
    500: '#ba78fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba78fb;
$custom-light: #d2a1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78fb",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 270.229,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69654,
    "c": 0.19237,
    "h": 305.2
  },
  "luminance": 0.30837
}

Semantic roles & 50–950 ramp

primary
#BA78FB
secondary
#E5F6D5
accent
#E60072
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA78FB

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

Preview Lab → · Contrast checker → · Palette generator →

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