#BA79EC#BA79EC

#BA79EC is a light, vivid violet. Relative luminance 0.302; OKLCH L 69.0% C 0.174 H 308.6°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#BA79EC
RGBrgb(186, 121, 236)
HSLhsl(274, 75%, 70%)
HSVhsv(274, 49%, 93%)
CMYKcmyk(21.2%, 48.7%, 0%, 7.5%)
CIE-LABlab(61.80, 46.17, -48.51)
CIE-LCHlch(61.80, 66.97, 313.58°)
OKLaboklab(68.98% 0.1083 -0.1356)
OKLCHoklch(68.98% 0.174 308.6)
XYZxyz(42.2245, 30.1705, 82.9397)
Luminance0.3017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79EC #ABEC79
analogous
#8179EC #BA79EC #EC79E4
triadic
#BA79EC #ECBA79 #79ECBA
tetradic
#BA79EC #EC8179 #ABEC79 #79E4EC
square
#BA79EC #EC8179 #ABEC79 #79E4EC
split-complementary
#BA79EC #E4EC79 #79EC81
monochromatic
#811DCD #9E43E4 #BA79EC #D6AFF4 #F1E4FB

Accessibility & contrast

On white

2.99
#BA79EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#BA79EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA79EC
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79EC#FFFFFF#000000##000000
##BA79EC1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B93F0
Deuteranopia (green-blind)
#6D96E9
Tritanopia (blue-blind)
#B38CA8
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba79ec;
/* rgb */ color: rgb(186, 121, 236);
/* oklch */ color: oklch(69.0% 0.174 308.6);
Tailwind
colors: {
  custom: {
    50: '#d1a1f2',
    500: '#ba79ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba79ec;
$custom-light: #d1a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79ec",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 236
  },
  "hsl": {
    "h": 273.913,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.6898,
    "c": 0.17358,
    "h": 308.6
  },
  "luminance": 0.3017
}

Semantic roles & 50–950 ramp

primary
#BA79EC
secondary
#DEF0D0
accent
#D70E66
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA79EC

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

Preview Lab → · Contrast checker → · Palette generator →

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