#BA78F2#BA78F2

#BA78F2 is a light, vivid violet. Relative luminance 0.303; OKLCH L 69.2% C 0.182 H 307.3°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#BA78F2
RGBrgb(186, 120, 242)
HSLhsl(272, 82%, 71%)
HSVhsv(272, 50%, 95%)
CMYKcmyk(23.1%, 50.4%, 0%, 5.1%)
CIE-LABlab(61.90, 48.04, -51.68)
CIE-LCHlch(61.90, 70.56, 312.91°)
OKLaboklab(69.15% 0.1102 -0.1449)
OKLCHoklch(69.15% 0.182 307.3)
XYZxyz(42.9900, 30.2833, 87.5677)
Luminance0.3028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78F2 #B0F278
analogous
#7D78F2 #BA78F2 #F278ED
triadic
#BA78F2 #F2BA78 #78F2BA
tetradic
#BA78F2 #F27D78 #B0F278 #78EDF2
square
#BA78F2 #F27D78 #B0F278 #78EDF2
split-complementary
#BA78F2 #EDF278 #78F27D
monochromatic
#8015DB #9D40ED #BA78F2 #D7B0F7 #F1E3FC

Accessibility & contrast

On white

2.98
#BA78F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#BA78F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78F2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78F2#FFFFFF#000000##000000
##BA78F21.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5593F6
Deuteranopia (green-blind)
#6896EF
Tritanopia (blue-blind)
#B28DAA
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba78f2;
/* rgb */ color: rgb(186, 120, 242);
/* oklch */ color: oklch(69.2% 0.182 307.3);
Tailwind
colors: {
  custom: {
    50: '#d1a1f7',
    500: '#ba78f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba78f2;
$custom-light: #d1a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78f2",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 272.459,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.69151,
    "c": 0.18204,
    "h": 307.3
  },
  "luminance": 0.30283
}

Semantic roles & 50–950 ramp

primary
#BA78F2
secondary
#E2F3D3
accent
#DF076A
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA78F2

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

Preview Lab → · Contrast checker → · Palette generator →

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