#BA78CC#BA78CC

#BA78CC is a light, vivid purple. Relative luminance 0.282; OKLCH L 67.2% C 0.139 H 318.8°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#BA78CC
RGBrgb(186, 120, 204)
HSLhsl(287, 45%, 64%)
HSVhsv(287, 41%, 80%)
CMYKcmyk(8.8%, 41.2%, 0%, 20%)
CIE-LABlab(60.10, 39.89, -33.28)
CIE-LCHlch(60.10, 51.95, 320.16°)
OKLaboklab(67.22% 0.1048 -0.0916)
OKLCHoklch(67.22% 0.139 318.8)
XYZxyz(37.8638, 28.2329, 60.5700)
Luminance0.2823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78CC #8ACC78
analogous
#9078CC #BA78CC #CC78B4
triadic
#BA78CC #CCBA78 #78CCBA
tetradic
#BA78CC #CC9078 #8ACC78 #78B4CC
square
#BA78CC #CC9078 #8ACC78 #78B4CC
split-complementary
#BA78CC #B4CC78 #78CC90
monochromatic
#7F3792 #A34CBB #BA78CC #D1A4DD #E7D1EE

Accessibility & contrast

On white

3.16
#BA78CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#BA78CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78CC
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78CC#FFFFFF#000000##000000
##BA78CC1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8CCF
Deuteranopia (green-blind)
#7D93C9
Tritanopia (blue-blind)
#BB8398
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba78cc;
/* rgb */ color: rgb(186, 120, 204);
/* oklch */ color: oklch(67.2% 0.139 318.8);
Tailwind
colors: {
  custom: {
    50: '#d0a0dc',
    500: '#ba78cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba78cc;
$custom-light: #d0a0dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78cc",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 204
  },
  "hsl": {
    "h": 287.143,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.67221,
    "c": 0.13917,
    "h": 318.8
  },
  "luminance": 0.28232
}

Semantic roles & 50–950 ramp

primary
#BA78CC
secondary
#C7DFC1
accent
#B82D4B
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#140F15
muted
#827E83

Preview Lab

Preview with #BA78CC

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

Preview Lab → · Contrast checker → · Palette generator →

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