#BA79FA#BA79FA

#BA79FA is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.7% C 0.190 H 305.3°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#BA79FA
RGBrgb(186, 121, 250)
HSLhsl(270, 93%, 73%)
HSVhsv(270, 52%, 98%)
CMYKcmyk(25.6%, 51.6%, 0%, 2%)
CIE-LABlab(62.52, 49.33, -55.11)
CIE-LCHlch(62.52, 73.96, 311.83°)
OKLaboklab(69.75% 0.1096 -0.1549)
OKLCHoklch(69.75% 0.19 305.3)
XYZxyz(44.3387, 31.0163, 94.0748)
Luminance0.3102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79FA #B9FA79
analogous
#7A79FA #BA79FA #FA79F9
triadic
#BA79FA #FABA79 #79FABA
tetradic
#BA79FA #FA7A79 #B9FA79 #79F9FA
square
#BA79FA #FA7A79 #B9FA79 #79F9FA
split-complementary
#BA79FA #F9FA79 #79FA7A
monochromatic
#7D09F0 #9C3EF8 #BA79FA #D8B4FC #F0E2FE

Accessibility & contrast

On white

2.92
#BA79FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#BA79FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA79FA
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79FA#FFFFFF#000000##000000
##BA79FA1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5095FE
Deuteranopia (green-blind)
#6497F7
Tritanopia (blue-blind)
#AF90AE
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba79fa;
/* rgb */ color: rgb(186, 121, 250);
/* oklch */ color: oklch(69.7% 0.190 305.3);
Tailwind
colors: {
  custom: {
    50: '#d2a1fc',
    500: '#ba79fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba79fa;
$custom-light: #d2a1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79fa",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 250
  },
  "hsl": {
    "h": 270.233,
    "s": 92.806,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69748,
    "c": 0.18971,
    "h": 305.3
  },
  "luminance": 0.31016
}

Semantic roles & 50–950 ramp

primary
#BA79FA
secondary
#E5F6D5
accent
#E60072
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA79FA

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

Preview Lab → · Contrast checker → · Palette generator →

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