#BA79E8#BA79E8

#BA79E8 is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.8% C 0.169 H 309.7°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#BA79E8
RGBrgb(186, 121, 232)
HSLhsl(275, 71%, 69%)
HSVhsv(275, 48%, 91%)
CMYKcmyk(19.8%, 47.8%, 0%, 9%)
CIE-LABlab(61.60, 45.28, -46.61)
CIE-LCHlch(61.60, 64.98, 314.17°)
OKLaboklab(68.77% 0.1079 -0.1301)
OKLCHoklch(68.77% 0.169 309.7)
XYZxyz(41.6498, 29.9407, 79.9133)
Luminance0.2994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA79E8 #A7E879
analogous
#8379E8 #BA79E8 #E879DF
triadic
#BA79E8 #E8BA79 #79E8BA
tetradic
#BA79E8 #E88379 #A7E879 #79DFE8
square
#BA79E8 #E88379 #A7E879 #79DFE8
split-complementary
#BA79E8 #DFE879 #79E883
monochromatic
#8122C5 #9F45DF #BA79E8 #D5ADF1 #F0E1FA

Accessibility & contrast

On white

3.01
#BA79E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#BA79E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA79E8
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA79E8#FFFFFF#000000##000000
##BA79E81.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E92EC
Deuteranopia (green-blind)
#7096E5
Tritanopia (blue-blind)
#B48BA6
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba79e8;
/* rgb */ color: rgb(186, 121, 232);
/* oklch */ color: oklch(68.8% 0.169 309.7);
Tailwind
colors: {
  custom: {
    50: '#d1a1f0',
    500: '#ba79e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba79e8;
$custom-light: #d1a1f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba79e8",
  "rgb": {
    "r": 186,
    "g": 121,
    "b": 232
  },
  "hsl": {
    "h": 275.135,
    "s": 70.701,
    "l": 69.216
  },
  "oklch": {
    "l": 0.68768,
    "c": 0.16898,
    "h": 309.7
  },
  "luminance": 0.2994
}

Semantic roles & 50–950 ramp

primary
#BA79E8
secondary
#DCEFCE
accent
#D31362
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA79E8

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

Preview Lab → · Contrast checker → · Palette generator →

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