#BA76EA#BA76EA

#BA76EA is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.4% C 0.176 H 309.6°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#BA76EA
RGBrgb(186, 118, 234)
HSLhsl(275, 73%, 69%)
HSVhsv(275, 50%, 92%)
CMYKcmyk(20.5%, 49.6%, 0%, 8.2%)
CIE-LABlab(61.08, 47.32, -48.55)
CIE-LCHlch(61.08, 67.80, 314.27°)
OKLaboklab(68.41% 0.1121 -0.1357)
OKLCHoklch(68.41% 0.176 309.6)
XYZxyz(41.5766, 29.3371, 81.2983)
Luminance0.2934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA76EA #A6EA76
analogous
#8076EA #BA76EA #EA76E0
triadic
#BA76EA #EABA76 #76EABA
tetradic
#BA76EA #EA8076 #A6EA76 #76E0EA
square
#BA76EA #EA8076 #A6EA76 #76E0EA
split-complementary
#BA76EA #E0EA76 #76EA80
monochromatic
#811FC7 #9F41E2 #BA76EA #D5ABF2 #EFE0FA

Accessibility & contrast

On white

3.06
#BA76EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#BA76EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA76EA
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA76EA#FFFFFF#000000##000000
##BA76EA1.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5890EE
Deuteranopia (green-blind)
#6C95E7
Tritanopia (blue-blind)
#B489A5
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba76ea;
/* rgb */ color: rgb(186, 118, 234);
/* oklch */ color: oklch(68.4% 0.176 309.6);
Tailwind
colors: {
  custom: {
    50: '#d19ff1',
    500: '#ba76ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba76ea;
$custom-light: #d19ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba76ea",
  "rgb": {
    "r": 186,
    "g": 118,
    "b": 234
  },
  "hsl": {
    "h": 275.172,
    "s": 73.418,
    "l": 69.02
  },
  "oklch": {
    "l": 0.6841,
    "c": 0.17604,
    "h": 309.6
  },
  "luminance": 0.29336
}

Semantic roles & 50–950 ramp

primary
#BA76EA
secondary
#DBEFCD
accent
#D61062
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140F17
muted
#837E85

Preview Lab

Preview with #BA76EA

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

Preview Lab → · Contrast checker → · Palette generator →

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