#BA78FC#BA78FC

#BA78FC is a light, vivid violet. Relative luminance 0.309; OKLCH L 69.7% C 0.194 H 305.0°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#BA78FC
RGBrgb(186, 120, 252)
HSLhsl(270, 96%, 73%)
HSVhsv(270, 52%, 99%)
CMYKcmyk(26.2%, 52.4%, 0%, 1.2%)
CIE-LABlab(62.42, 50.31, -56.36)
CIE-LCHlch(62.42, 75.55, 311.75°)
OKLaboklab(69.71% 0.111 -0.1585)
OKLCHoklch(69.71% 0.194 305)
XYZxyz(44.5331, 30.9006, 95.6949)
Luminance0.3090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78FC #BAFC78
analogous
#7878FC #BA78FC #FC78FC
triadic
#BA78FC #FCBA78 #78FCBA
tetradic
#BA78FC #FC7878 #BAFC78 #78FCFC
square
#BA78FC #FC7878 #BAFC78 #78FCFC
split-complementary
#BA78FC #FCFC78 #78FC78
monochromatic
#7D05F4 #9B3CFB #BA78FC #D9B4FD #F0E1FE

Accessibility & contrast

On white

2.92
#BA78FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#BA78FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78FC
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78FC#FFFFFF#000000##000000
##BA78FC1.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C95FF
Deuteranopia (green-blind)
#6197F9
Tritanopia (blue-blind)
#AF90AF
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba78fc;
/* rgb */ color: rgb(186, 120, 252);
/* oklch */ color: oklch(69.7% 0.194 305.0);
Tailwind
colors: {
  custom: {
    50: '#d2a1fe',
    500: '#ba78fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba78fc;
$custom-light: #d2a1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78fc",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 270,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69711,
    "c": 0.19353,
    "h": 305
  },
  "luminance": 0.309
}

Semantic roles & 50–950 ramp

primary
#BA78FC
secondary
#E6F7D4
accent
#E60073
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA78FC

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

Preview Lab → · Contrast checker → · Palette generator →

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