#BA79DC#BA79DC

#BA79DC is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.2% C 0.155 H 313.1°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#BA79DC
RGBrgb(186, 121, 220)
HSLhsl(279, 59%, 67%)
HSVhsv(279, 45%, 86%)
CMYKcmyk(15.5%, 45%, 0%, 13.7%)
CIE-LABlab(61.03, 42.68, -40.82)
CIE-LCHlch(61.03, 59.06, 316.28°)
OKLaboklab(68.15% 0.1062 -0.1133)
OKLCHoklch(68.15% 0.155 313.1)
XYZxyz(40.0032, 29.2820, 71.2410)
Luminance0.2928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79DC #9BDC79
analogous
#8979DC #BA79DC #DC79CD
triadic
#BA79DC #DCBA79 #79DCBA
tetradic
#BA79DC #DC8979 #9BDC79 #79CDDC
square
#BA79DC #DC8979 #9BDC79 #79CDDC
split-complementary
#BA79DC #CDDC79 #79DC89
monochromatic
#812DAD #A148CF #BA79DC #D3AAE9 #ECDAF5

Accessibility & contrast

On white

3.06
#BA79DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#BA79DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA79DC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79DC#FFFFFF#000000##000000
##BA79DC1.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6590E0
Deuteranopia (green-blind)
#7695D9
Tritanopia (blue-blind)
#B788A0
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba79dc;
/* rgb */ color: rgb(186, 121, 220);
/* oklch */ color: oklch(68.2% 0.155 313.1);
Tailwind
colors: {
  custom: {
    50: '#d0a1e7',
    500: '#ba79dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba79dc;
$custom-light: #d0a1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79dc",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 220
  },
  "hsl": {
    "h": 279.394,
    "s": 58.58,
    "l": 66.863
  },
  "oklch": {
    "l": 0.68154,
    "c": 0.15528,
    "h": 313.1
  },
  "luminance": 0.29281
}

Semantic roles & 50–950 ramp

primary
#BA79DC
secondary
#D3E8C9
accent
#C61F59
background
#FDFAFE
surface
#FAF3FC
border
#D3CDD5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA79DC

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

Preview Lab → · Contrast checker → · Palette generator →

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