#BA79FE#BA79FE

#BA79FE is a light, vivid violet. Relative luminance 0.313; OKLCH L 70.0% C 0.194 H 304.4°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#BA79FE
RGBrgb(186, 121, 254)
HSLhsl(269, 99%, 74%)
HSVhsv(269, 52%, 100%)
CMYKcmyk(26.8%, 52.4%, 0%, 0.4%)
CIE-LABlab(62.73, 50.24, -56.97)
CIE-LCHlch(62.73, 75.96, 311.41°)
OKLaboklab(69.97% 0.1099 -0.1603)
OKLCHoklch(69.97% 0.194 304.4)
XYZxyz(44.9726, 31.2698, 97.4131)
Luminance0.3127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79FE #BDFE79
analogous
#797AFE #BA79FE #FC79FE
triadic
#BA79FE #FEBA79 #79FEBA
tetradic
#BA79FE #FE797A #BDFE79 #79FEFC
square
#BA79FE #FE797A #BDFE79 #79FEFC
split-complementary
#BA79FE #FEFC79 #7AFE79
monochromatic
#7B02FB #9B3CFE #BA79FE #D9B6FE #EFE1FF

Accessibility & contrast

On white

2.89
#BA79FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#BA79FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA79FE
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79FE#FFFFFF#000000##000000
##BA79FE1.002.897.257.25
#FFFFFF2.891.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C96FF
Deuteranopia (green-blind)
#6198FB
Tritanopia (blue-blind)
#AE92B0
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba79fe;
/* rgb */ color: rgb(186, 121, 254);
/* oklch */ color: oklch(70.0% 0.194 304.4);
Tailwind
colors: {
  custom: {
    50: '#d2a1ff',
    500: '#ba79fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba79fe;
$custom-light: #d2a1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79fe",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 254
  },
  "hsl": {
    "h": 269.323,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.69975,
    "c": 0.19433,
    "h": 304.4
  },
  "luminance": 0.3127
}

Semantic roles & 50–950 ramp

primary
#BA79FE
secondary
#E6F7D4
accent
#E60075
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA79FE

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

Preview Lab → · Contrast checker → · Palette generator →

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