#BA78BB#BA78BB

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

Color values

HEX#BA78BB
RGBrgb(186, 120, 187)
HSLhsl(299, 33%, 60%)
HSVhsv(299, 36%, 73%)
CMYKcmyk(0.5%, 35.8%, 0%, 26.7%)
CIE-LABlab(59.40, 36.55, -24.72)
CIE-LCHlch(59.40, 44.13, 325.92°)
OKLaboklab(66.47% 0.1009 -0.0673)
OKLCHoklch(66.47% 0.121 326.3)
XYZxyz(35.9350, 27.4613, 50.4118)
Luminance0.2746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78BB #79BB78
analogous
#9878BB #BA78BB #BB789B
triadic
#BA78BB #BBBA78 #78BBBA
tetradic
#BA78BB #BB9878 #79BB78 #789BBB
square
#BA78BB #BB9878 #79BB78 #789BBB
split-complementary
#BA78BB #9BBB78 #78BB98
monochromatic
#7A3E7B #A252A3 #BA78BB #CFA1D0 #E4C9E4

Accessibility & contrast

On white

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

On black

6.49
#BA78BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78BB
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78BB#FFFFFF#000000##000000
##BA78BB1.003.236.496.49
#FFFFFF3.231.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#738ABD
Deuteranopia (green-blind)
#8392B9
Tritanopia (blue-blind)
#BE7E91
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba78bb;
/* rgb */ color: rgb(186, 120, 187);
/* oklch */ color: oklch(66.5% 0.121 326.3);
Tailwind
colors: {
  custom: {
    50: '#d0a0cf',
    500: '#ba78bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba78bb;
$custom-light: #d0a0cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78bb",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 187
  },
  "hsl": {
    "h": 299.104,
    "s": 33.005,
    "l": 60.196
  },
  "oklch": {
    "l": 0.66465,
    "c": 0.1213,
    "h": 326.3
  },
  "luminance": 0.2746
}

Semantic roles & 50–950 ramp

primary
#BA78BB
secondary
#BBD4BB
accent
#AC3A3B
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140F14
muted
#827E82

Preview Lab

Preview with #BA78BB

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

Preview Lab → · Contrast checker → · Palette generator →

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