#BA79EB#BA79EB

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

Color values

HEX#BA79EB
RGBrgb(186, 121, 235)
HSLhsl(274, 74%, 70%)
HSVhsv(274, 49%, 92%)
CMYKcmyk(20.9%, 48.5%, 0%, 7.8%)
CIE-LABlab(61.75, 45.94, -48.04)
CIE-LCHlch(61.75, 66.47, 313.72°)
OKLaboklab(68.93% 0.1082 -0.1342)
OKLCHoklch(68.93% 0.172 308.9)
XYZxyz(42.0796, 30.1126, 82.1767)
Luminance0.3011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79EB #AAEB79
analogous
#8179EB #BA79EB #EB79E3
triadic
#BA79EB #EBBA79 #79EBBA
tetradic
#BA79EB #EB8179 #AAEB79 #79E3EB
square
#BA79EB #EB8179 #AAEB79 #79E3EB
split-complementary
#BA79EB #E3EB79 #79EB81
monochromatic
#811ECB #9F44E3 #BA79EB #D5AEF3 #F1E4FB

Accessibility & contrast

On white

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

On black

7.02
#BA79EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA79EB
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79EB#FFFFFF#000000##000000
##BA79EB1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C92EF
Deuteranopia (green-blind)
#6E96E8
Tritanopia (blue-blind)
#B38CA7
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba79eb;
/* rgb */ color: rgb(186, 121, 235);
/* oklch */ color: oklch(68.9% 0.172 308.9);
Tailwind
colors: {
  custom: {
    50: '#d1a1f2',
    500: '#ba79eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba79eb;
$custom-light: #d1a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79eb",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 235
  },
  "hsl": {
    "h": 274.211,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.68927,
    "c": 0.17242,
    "h": 308.9
  },
  "luminance": 0.30112
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA79EB

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

Preview Lab → · Contrast checker → · Palette generator →

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