#BA78CD#BA78CD

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

Color values

HEX#BA78CD
RGBrgb(186, 120, 205)
HSLhsl(287, 46%, 64%)
HSVhsv(287, 41%, 80%)
CMYKcmyk(9.3%, 41.5%, 0%, 19.6%)
CIE-LABlab(60.14, 40.09, -33.78)
CIE-LCHlch(60.14, 52.43, 319.89°)
OKLaboklab(67.27% 0.105 -0.093)
OKLCHoklch(67.27% 0.14 318.4)
XYZxyz(37.9841, 28.2810, 61.2037)
Luminance0.2828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA78CD #8BCD78
analogous
#8F78CD #BA78CD #CD78B5
triadic
#BA78CD #CDBA78 #78CDBA
tetradic
#BA78CD #CD8F78 #8BCD78 #78B5CD
square
#BA78CD #CD8F78 #8BCD78 #78B5CD
split-complementary
#BA78CD #B5CD78 #78CD8F
monochromatic
#7F3794 #A34BBC #BA78CD #D1A5DE #E8D1EE

Accessibility & contrast

On white

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

On black

6.66
#BA78CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA78CD
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA78CD#FFFFFF#000000##000000
##BA78CD1.003.166.666.66
#FFFFFF3.161.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba78cd;
/* rgb */ color: rgb(186, 120, 205);
/* oklch */ color: oklch(67.3% 0.140 318.4);
Tailwind
colors: {
  custom: {
    50: '#d0a0dc',
    500: '#ba78cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba78cd;
$custom-light: #d0a0dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba78cd",
  "rgb": {
    "r": 186,
    "g": 120,
    "b": 205
  },
  "hsl": {
    "h": 286.588,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.67268,
    "c": 0.14027,
    "h": 318.4
  },
  "luminance": 0.2828
}

Semantic roles & 50–950 ramp

primary
#BA78CD
secondary
#C8DFC1
accent
#B92C4C
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#140F15
muted
#827E83

Preview Lab

Preview with #BA78CD

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

Preview Lab → · Contrast checker → · Palette generator →

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