#BA76EC#BA76EC

#BA76EC is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.5% C 0.178 H 309.0°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#BA76EC
RGBrgb(186, 118, 236)
HSLhsl(275, 76%, 69%)
HSVhsv(275, 50%, 93%)
CMYKcmyk(21.2%, 50%, 0%, 7.5%)
CIE-LABlab(61.18, 47.76, -49.50)
CIE-LCHlch(61.18, 68.79, 313.98°)
OKLaboklab(68.52% 0.1123 -0.1385)
OKLCHoklch(68.52% 0.178 309)
XYZxyz(41.8655, 29.4527, 82.8201)
Luminance0.2945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA76EC #A8EC76
analogous
#7F76EC #BA76EC #EC76E3
triadic
#BA76EC #ECBA76 #76ECBA
tetradic
#BA76EC #EC7F76 #A8EC76 #76E3EC
square
#BA76EC #EC7F76 #A8EC76 #76E3EC
split-complementary
#BA76EC #E3EC76 #76EC7F
monochromatic
#811CCB #9F40E5 #BA76EC #D5ACF3 #F0E1FB

Accessibility & contrast

On white

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

On black

6.89
#BA76EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA76EC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA76EC#FFFFFF#000000##000000
##BA76EC1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5691F0
Deuteranopia (green-blind)
#6A95E9
Tritanopia (blue-blind)
#B38AA6
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba76ec;
/* rgb */ color: rgb(186, 118, 236);
/* oklch */ color: oklch(68.5% 0.178 309.0);
Tailwind
colors: {
  custom: {
    50: '#d19ff2',
    500: '#ba76ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba76ec;
$custom-light: #d19ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba76ec",
  "rgb": {
    "r": 186,
    "g": 118,
    "b": 236
  },
  "hsl": {
    "h": 274.576,
    "s": 75.641,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68518,
    "c": 0.17831,
    "h": 309
  },
  "luminance": 0.29452
}

Semantic roles & 50–950 ramp

primary
#BA76EC
secondary
#DCF0CE
accent
#D80E63
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140F17
muted
#837E85

Preview Lab

Preview with #BA76EC

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

Preview Lab → · Contrast checker → · Palette generator →

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