#BA78CA#BA78CA

#BA78CA is a light, vivid purple. Relative luminance 0.281; OKLCH L 67.1% C 0.137 H 319.6°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#BA78CA
RGBrgb(186, 120, 202)
HSLhsl(288, 44%, 63%)
HSVhsv(288, 41%, 79%)
CMYKcmyk(7.9%, 40.6%, 0%, 20.8%)
CIE-LABlab(60.01, 39.49, -32.29)
CIE-LCHlch(60.01, 51.01, 320.73°)
OKLaboklab(67.13% 0.1044 -0.0888)
OKLCHoklch(67.13% 0.137 319.6)
XYZxyz(37.6255, 28.1375, 59.3148)
Luminance0.2814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78CA #88CA78
analogous
#9178CA #BA78CA #CA78B1
triadic
#BA78CA #CABA78 #78CABA
tetradic
#BA78CA #CA9178 #88CA78 #78B1CA
square
#BA78CA #CA9178 #88CA78 #78B1CA
split-complementary
#BA78CA #B1CA78 #78CA91
monochromatic
#7E388F #A44CB9 #BA78CA #D0A4DB #E7D0ED

Accessibility & contrast

On white

3.17
#BA78CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#BA78CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78CA
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78CA#FFFFFF#000000##000000
##BA78CA1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D8CCD
Deuteranopia (green-blind)
#7E93C8
Tritanopia (blue-blind)
#BB8297
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba78ca;
/* rgb */ color: rgb(186, 120, 202);
/* oklch */ color: oklch(67.1% 0.137 319.6);
Tailwind
colors: {
  custom: {
    50: '#d0a0da',
    500: '#ba78ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba78ca;
$custom-light: #d0a0da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78ca",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 288.293,
    "s": 43.617,
    "l": 63.137
  },
  "oklch": {
    "l": 0.67129,
    "c": 0.137,
    "h": 319.6
  },
  "luminance": 0.28136
}

Semantic roles & 50–950 ramp

primary
#BA78CA
secondary
#C6DEC0
accent
#B72F49
background
#FCF9FD
surface
#F9F2FA
border
#D2CCD3
text
#140F15
muted
#827E83

Preview Lab

Preview with #BA78CA

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

Preview Lab → · Contrast checker → · Palette generator →

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