#BA76EB#BA76EB

#BA76EB is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.5% C 0.177 H 309.3°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#BA76EB
RGBrgb(186, 118, 235)
HSLhsl(275, 75%, 69%)
HSVhsv(275, 50%, 92%)
CMYKcmyk(20.9%, 49.8%, 0%, 7.8%)
CIE-LABlab(61.13, 47.54, -49.02)
CIE-LCHlch(61.13, 68.29, 314.12°)
OKLaboklab(68.46% 0.1122 -0.1371)
OKLCHoklch(68.46% 0.177 309.3)
XYZxyz(41.7207, 29.3948, 82.0571)
Luminance0.2939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA76EB #A7EB76
analogous
#8076EB #BA76EB #EB76E1
triadic
#BA76EB #EBBA76 #76EBBA
tetradic
#BA76EB #EB8076 #A7EB76 #76E1EB
square
#BA76EB #EB8076 #A7EB76 #76E1EB
split-complementary
#BA76EB #E1EB76 #76EB80
monochromatic
#811DC9 #9F41E3 #BA76EB #D5ABF3 #F0E1FB

Accessibility & contrast

On white

3.05
#BA76EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#BA76EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA76EB
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA76EB#FFFFFF#000000##000000
##BA76EB1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5791EF
Deuteranopia (green-blind)
#6B95E8
Tritanopia (blue-blind)
#B48AA6
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba76eb;
/* rgb */ color: rgb(186, 118, 235);
/* oklch */ color: oklch(68.5% 0.177 309.3);
Tailwind
colors: {
  custom: {
    50: '#d19ff2',
    500: '#ba76eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba76eb;
$custom-light: #d19ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba76eb",
  "rgb": {
    "r": 186,
    "g": 118,
    "b": 235
  },
  "hsl": {
    "h": 274.872,
    "s": 74.522,
    "l": 69.216
  },
  "oklch": {
    "l": 0.68464,
    "c": 0.17718,
    "h": 309.3
  },
  "luminance": 0.29394
}

Semantic roles & 50–950 ramp

primary
#BA76EB
secondary
#DCEFCD
accent
#D70F63
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140F17
muted
#837E85

Preview Lab

Preview with #BA76EB

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

Preview Lab → · Contrast checker → · Palette generator →

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