#BA78ED#BA78ED

#BA78ED is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.9% C 0.176 H 308.5°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#BA78ED
RGBrgb(186, 120, 237)
HSLhsl(274, 76%, 70%)
HSVhsv(274, 49%, 93%)
CMYKcmyk(21.5%, 49.4%, 0%, 7.1%)
CIE-LABlab(61.64, 46.92, -49.32)
CIE-LCHlch(61.64, 68.07, 313.57°)
OKLaboklab(68.88% 0.1098 -0.138)
OKLCHoklch(68.88% 0.176 308.5)
XYZxyz(42.2493, 29.9870, 83.6667)
Luminance0.2999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78ED #ABED78
analogous
#7F78ED #BA78ED #ED78E6
triadic
#BA78ED #EDBA78 #78EDBA
tetradic
#BA78ED #ED7F78 #ABED78 #78E6ED
square
#BA78ED #ED7F78 #ABED78 #78E6ED
split-complementary
#BA78ED #E6ED78 #78ED7F
monochromatic
#811CCF #9E42E6 #BA78ED #D6AEF4 #F1E4FB

Accessibility & contrast

On white

3.00
#BA78ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#BA78ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA78ED
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78ED#FFFFFF#000000##000000
##BA78ED1.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5992F1
Deuteranopia (green-blind)
#6C96EA
Tritanopia (blue-blind)
#B38CA8
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba78ed;
/* rgb */ color: rgb(186, 120, 237);
/* oklch */ color: oklch(68.9% 0.176 308.5);
Tailwind
colors: {
  custom: {
    50: '#d1a1f3',
    500: '#ba78ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba78ed;
$custom-light: #d1a1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78ed",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 237
  },
  "hsl": {
    "h": 273.846,
    "s": 76.471,
    "l": 70
  },
  "oklch": {
    "l": 0.68879,
    "c": 0.17631,
    "h": 308.5
  },
  "luminance": 0.29986
}

Semantic roles & 50–950 ramp

primary
#BA78ED
secondary
#DEF1D0
accent
#D90D66
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA78ED

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

Preview Lab → · Contrast checker → · Palette generator →

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