#BA77FB#BA77FB

#BA77FB is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.5% C 0.194 H 305.4°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#BA77FB
RGBrgb(186, 119, 251)
HSLhsl(270, 94%, 73%)
HSVhsv(270, 53%, 98%)
CMYKcmyk(25.9%, 52.6%, 0%, 1.6%)
CIE-LABlab(62.17, 50.61, -56.22)
CIE-LCHlch(62.17, 75.65, 311.99°)
OKLaboklab(69.5% 0.1122 -0.1581)
OKLCHoklch(69.5% 0.194 305.4)
XYZxyz(44.2554, 30.5981, 94.8227)
Luminance0.3060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA77FB #B8FB77
analogous
#7877FB #BA77FB #FB77FA
triadic
#BA77FB #FBBA77 #77FBBA
tetradic
#BA77FB #FB7877 #B8FB77 #77FAFB
square
#BA77FB #FB7877 #B8FB77 #77FAFB
split-complementary
#BA77FB #FAFB77 #77FB78
monochromatic
#7E07F1 #9C3CF9 #BA77FB #D8B2FD #F0E1FE

Accessibility & contrast

On white

2.95
#BA77FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#BA77FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA77FB
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA77FB#FFFFFF#000000##000000
##BA77FB1.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C94FF
Deuteranopia (green-blind)
#6197F8
Tritanopia (blue-blind)
#AF8FAE
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba77fb;
/* rgb */ color: rgb(186, 119, 251);
/* oklch */ color: oklch(69.5% 0.194 305.4);
Tailwind
colors: {
  custom: {
    50: '#d2a0fd',
    500: '#ba77fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba77fb;
$custom-light: #d2a0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba77fb",
  "rgb": {
    "r": 186,
    "g": 119,
    "b": 251
  },
  "hsl": {
    "h": 270.455,
    "s": 94.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69504,
    "c": 0.19388,
    "h": 305.4
  },
  "luminance": 0.30598
}

Semantic roles & 50–950 ramp

primary
#BA77FB
secondary
#E5F6D5
accent
#E60071
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA77FB

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

Preview Lab → · Contrast checker → · Palette generator →

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