#BA78CE#BA78CE

#BA78CE is a light, vivid purple. Relative luminance 0.283; OKLCH L 67.3% C 0.141 H 318.1°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#BA78CE
RGBrgb(186, 120, 206)
HSLhsl(286, 47%, 64%)
HSVhsv(286, 42%, 81%)
CMYKcmyk(9.7%, 41.7%, 0%, 19.2%)
CIE-LABlab(60.19, 40.30, -34.28)
CIE-LCHlch(60.19, 52.90, 319.62°)
OKLaboklab(67.32% 0.1052 -0.0945)
OKLCHoklch(67.32% 0.141 318.1)
XYZxyz(38.1052, 28.3294, 61.8414)
Luminance0.2833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78CE #8CCE78
analogous
#8F78CE #BA78CE #CE78B7
triadic
#BA78CE #CEBA78 #78CEBA
tetradic
#BA78CE #CE8F78 #8CCE78 #78B7CE
square
#BA78CE #CE8F78 #8CCE78 #78B7CE
split-complementary
#BA78CE #B7CE78 #78CE8F
monochromatic
#7F3695 #A34BBE #BA78CE #D1A5DE #E8D2EF

Accessibility & contrast

On white

3.15
#BA78CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#BA78CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78CE
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78CE#FFFFFF#000000##000000
##BA78CE1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8DD1
Deuteranopia (green-blind)
#7C93CB
Tritanopia (blue-blind)
#BA8399
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba78ce;
/* rgb */ color: rgb(186, 120, 206);
/* oklch */ color: oklch(67.3% 0.141 318.1);
Tailwind
colors: {
  custom: {
    50: '#d0a0dd',
    500: '#ba78ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba78ce;
$custom-light: #d0a0dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78ce",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 206
  },
  "hsl": {
    "h": 286.047,
    "s": 46.739,
    "l": 63.922
  },
  "oklch": {
    "l": 0.67315,
    "c": 0.14136,
    "h": 318.1
  },
  "luminance": 0.28328
}

Semantic roles & 50–950 ramp

primary
#BA78CE
secondary
#C9E0C2
accent
#BA2C4D
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#140F15
muted
#827E83

Preview Lab

Preview with #BA78CE

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

Preview Lab → · Contrast checker → · Palette generator →

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