#BA78BF#BA78BF

#BA78BF is a light, vivid purple. Relative luminance 0.276; OKLCH L 66.6% C 0.125 H 324.4°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#BA78BF
RGBrgb(186, 120, 191)
HSLhsl(296, 36%, 61%)
HSVhsv(296, 37%, 75%)
CMYKcmyk(2.6%, 37.2%, 0%, 25.1%)
CIE-LABlab(59.56, 37.32, -26.76)
CIE-LCHlch(59.56, 45.92, 324.36°)
OKLaboklab(66.64% 0.1019 -0.073)
OKLCHoklch(66.64% 0.125 324.4)
XYZxyz(36.3692, 27.6350, 52.6984)
Luminance0.2763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78BF #7DBF78
analogous
#9678BF #BA78BF #BF78A0
triadic
#BA78BF #BFBA78 #78BFBA
tetradic
#BA78BF #BF9678 #7DBF78 #78A0BF
square
#BA78BF #BF9678 #7DBF78 #78A0BF
split-complementary
#BA78BF #A0BF78 #78BF96
monochromatic
#7B3D80 #A350A9 #BA78BF #CFA2D3 #E4CBE6

Accessibility & contrast

On white

3.22
#BA78BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#BA78BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78BF
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78BF#FFFFFF#000000##000000
##BA78BF1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#718AC2
Deuteranopia (green-blind)
#8292BD
Tritanopia (blue-blind)
#BD7F93
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba78bf;
/* rgb */ color: rgb(186, 120, 191);
/* oklch */ color: oklch(66.6% 0.125 324.4);
Tailwind
colors: {
  custom: {
    50: '#d0a0d2',
    500: '#ba78bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba78bf;
$custom-light: #d0a0d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78bf",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 191
  },
  "hsl": {
    "h": 295.775,
    "s": 35.678,
    "l": 60.98
  },
  "oklch": {
    "l": 0.66637,
    "c": 0.12537,
    "h": 324.4
  },
  "luminance": 0.27634
}

Semantic roles & 50–950 ramp

primary
#BA78BF
secondary
#BED7BC
accent
#AF373F
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140F14
muted
#827E82

Preview Lab

Preview with #BA78BF

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

Preview Lab → · Contrast checker → · Palette generator →

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