#BA77EC#BA77EC

#BA77EC is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.7% C 0.177 H 308.9°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#BA77EC
RGBrgb(186, 119, 236)
HSLhsl(274, 75%, 70%)
HSVhsv(274, 50%, 93%)
CMYKcmyk(21.2%, 49.6%, 0%, 7.5%)
CIE-LABlab(61.39, 47.23, -49.17)
CIE-LCHlch(61.39, 68.18, 313.85°)
OKLaboklab(68.67% 0.111 -0.1375)
OKLCHoklch(68.67% 0.177 308.9)
XYZxyz(41.9839, 29.6895, 82.8595)
Luminance0.2969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA77EC #A9EC77
analogous
#8077EC #BA77EC #EC77E4
triadic
#BA77EC #ECBA77 #77ECBA
tetradic
#BA77EC #EC8077 #A9EC77 #77E4EC
square
#BA77EC #EC8077 #A9EC77 #77E4EC
split-complementary
#BA77EC #E4EC77 #77EC80
monochromatic
#811DCC #9F41E4 #BA77EC #D5ADF4 #F0E2FB

Accessibility & contrast

On white

3.03
#BA77EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#BA77EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA77EC
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA77EC#FFFFFF#000000##000000
##BA77EC1.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5891F0
Deuteranopia (green-blind)
#6B95E9
Tritanopia (blue-blind)
#B38BA7
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba77ec;
/* rgb */ color: rgb(186, 119, 236);
/* oklch */ color: oklch(68.7% 0.177 308.9);
Tailwind
colors: {
  custom: {
    50: '#d1a0f2',
    500: '#ba77ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba77ec;
$custom-light: #d1a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba77ec",
  "rgb": {
    "r": 186,
    "g": 119,
    "b": 236
  },
  "hsl": {
    "h": 274.359,
    "s": 75.484,
    "l": 69.608
  },
  "oklch": {
    "l": 0.68671,
    "c": 0.17674,
    "h": 308.9
  },
  "luminance": 0.29689
}

Semantic roles & 50–950 ramp

primary
#BA77EC
secondary
#DDF0CF
accent
#D80E64
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA77EC

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

Preview Lab → · Contrast checker → · Palette generator →

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