#BA78BC#BA78BC

#BA78BC is a light, vivid purple. Relative luminance 0.275; OKLCH L 66.5% C 0.122 H 325.8°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#BA78BC
RGBrgb(186, 120, 188)
HSLhsl(298, 34%, 60%)
HSVhsv(298, 36%, 74%)
CMYKcmyk(1.1%, 36.2%, 0%, 26.3%)
CIE-LABlab(59.44, 36.74, -25.23)
CIE-LCHlch(59.44, 44.57, 325.52°)
OKLaboklab(66.51% 0.1012 -0.0687)
OKLCHoklch(66.51% 0.122 325.8)
XYZxyz(36.0424, 27.5043, 50.9775)
Luminance0.2750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78BC #7ABC78
analogous
#9878BC #BA78BC #BC789C
triadic
#BA78BC #BCBA78 #78BCBA
tetradic
#BA78BC #BC9878 #7ABC78 #789CBC
square
#BA78BC #BC9878 #7ABC78 #789CBC
split-complementary
#BA78BC #9CBC78 #78BC98
monochromatic
#7A3E7C #A252A5 #BA78BC #CFA1D0 #E4CAE5

Accessibility & contrast

On white

3.23
#BA78BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#BA78BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78BC
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78BC#FFFFFF#000000##000000
##BA78BC1.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#728ABF
Deuteranopia (green-blind)
#8392BA
Tritanopia (blue-blind)
#BE7F91
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba78bc;
/* rgb */ color: rgb(186, 120, 188);
/* oklch */ color: oklch(66.5% 0.122 325.8);
Tailwind
colors: {
  custom: {
    50: '#d0a0d0',
    500: '#ba78bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba78bc;
$custom-light: #d0a0d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78bc",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 188
  },
  "hsl": {
    "h": 298.235,
    "s": 33.663,
    "l": 60.392
  },
  "oklch": {
    "l": 0.66508,
    "c": 0.12231,
    "h": 325.8
  },
  "luminance": 0.27503
}

Semantic roles & 50–950 ramp

primary
#BA78BC
secondary
#BCD5BB
accent
#AC393C
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140F14
muted
#827E82

Preview Lab

Preview with #BA78BC

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

Preview Lab → · Contrast checker → · Palette generator →

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