#BA78BD#BA78BD

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

Color values

HEX#BA78BD
RGBrgb(186, 120, 189)
HSLhsl(297, 34%, 61%)
HSVhsv(297, 37%, 74%)
CMYKcmyk(1.6%, 36.5%, 0%, 25.9%)
CIE-LABlab(59.48, 36.93, -25.74)
CIE-LCHlch(59.48, 45.02, 325.12°)
OKLaboklab(66.55% 0.1014 -0.0701)
OKLCHoklch(66.55% 0.123 325.3)
XYZxyz(36.1506, 27.5476, 51.5472)
Luminance0.2755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78BD #7BBD78
analogous
#9778BD #BA78BD #BD789D
triadic
#BA78BD #BDBA78 #78BDBA
tetradic
#BA78BD #BD9778 #7BBD78 #789DBD
square
#BA78BD #BD9778 #7BBD78 #789DBD
split-complementary
#BA78BD #9DBD78 #78BD97
monochromatic
#7B3D7D #A351A6 #BA78BD #CFA1D1 #E4CAE5

Accessibility & contrast

On white

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

On black

6.51
#BA78BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78BD
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78BD#FFFFFF#000000##000000
##BA78BD1.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#728AC0
Deuteranopia (green-blind)
#8392BB
Tritanopia (blue-blind)
#BD7F92
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba78bd;
/* rgb */ color: rgb(186, 120, 189);
/* oklch */ color: oklch(66.5% 0.123 325.3);
Tailwind
colors: {
  custom: {
    50: '#d0a0d1',
    500: '#ba78bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba78bd;
$custom-light: #d0a0d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78bd",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 189
  },
  "hsl": {
    "h": 297.391,
    "s": 34.328,
    "l": 60.588
  },
  "oklch": {
    "l": 0.6655,
    "c": 0.12332,
    "h": 325.3
  },
  "luminance": 0.27546
}

Semantic roles & 50–950 ramp

primary
#BA78BD
secondary
#BCD6BB
accent
#AD383D
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140F14
muted
#827E82

Preview Lab

Preview with #BA78BD

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

Preview Lab → · Contrast checker → · Palette generator →

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