#BA79EA#BA79EA

#BA79EA is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.9% C 0.171 H 309.1°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#BA79EA
RGBrgb(186, 121, 234)
HSLhsl(275, 73%, 70%)
HSVhsv(275, 48%, 92%)
CMYKcmyk(20.5%, 48.3%, 0%, 8.2%)
CIE-LABlab(61.70, 45.72, -47.56)
CIE-LCHlch(61.70, 65.97, 313.87°)
OKLaboklab(68.87% 0.1081 -0.1329)
OKLCHoklch(68.87% 0.171 309.1)
XYZxyz(41.9355, 30.0550, 81.4180)
Luminance0.3005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79EA #A9EA79
analogous
#8279EA #BA79EA #EA79E2
triadic
#BA79EA #EABA79 #79EABA
tetradic
#BA79EA #EA8279 #A9EA79 #79E2EA
square
#BA79EA #EA8279 #A9EA79 #79E2EA
split-complementary
#BA79EA #E2EA79 #79EA82
monochromatic
#8120C9 #9F44E2 #BA79EA #D5AEF2 #F0E3FB

Accessibility & contrast

On white

3.00
#BA79EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#BA79EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA79EA
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79EA#FFFFFF#000000##000000
##BA79EA1.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C92EE
Deuteranopia (green-blind)
#6E96E7
Tritanopia (blue-blind)
#B48CA7
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba79ea;
/* rgb */ color: rgb(186, 121, 234);
/* oklch */ color: oklch(68.9% 0.171 309.1);
Tailwind
colors: {
  custom: {
    50: '#d1a1f1',
    500: '#ba79ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba79ea;
$custom-light: #d1a1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79ea",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 234
  },
  "hsl": {
    "h": 274.513,
    "s": 72.903,
    "l": 69.608
  },
  "oklch": {
    "l": 0.68874,
    "c": 0.17128,
    "h": 309.1
  },
  "luminance": 0.30054
}

Semantic roles & 50–950 ramp

primary
#BA79EA
secondary
#DDF0CF
accent
#D51164
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA79EA

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

Preview Lab → · Contrast checker → · Palette generator →

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