#BA77F7#BA77F7

#BA77F7 is a light, vivid violet. Relative luminance 0.303; OKLCH L 69.3% C 0.189 H 306.3°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#BA77F7
RGBrgb(186, 119, 247)
HSLhsl(271, 89%, 72%)
HSVhsv(271, 52%, 97%)
CMYKcmyk(24.7%, 51.8%, 0%, 3.1%)
CIE-LABlab(61.95, 49.70, -54.36)
CIE-LCHlch(61.95, 73.65, 312.44°)
OKLaboklab(69.28% 0.1119 -0.1527)
OKLCHoklch(69.28% 0.189 306.3)
XYZxyz(43.6315, 30.3485, 91.5369)
Luminance0.3035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA77F7 #B4F777
analogous
#7A77F7 #BA77F7 #F777F4
triadic
#BA77F7 #F7BA77 #77F7BA
tetradic
#BA77F7 #F77A77 #B4F777 #77F4F7
square
#BA77F7 #F77A77 #B4F777 #77F4F7
split-complementary
#BA77F7 #F4F777 #77F77A
monochromatic
#7F0EE6 #9D3DF4 #BA77F7 #D7B1FA #F0E2FD

Accessibility & contrast

On white

2.97
#BA77F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#BA77F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA77F7
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA77F7#FFFFFF#000000##000000
##BA77F71.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F93FB
Deuteranopia (green-blind)
#6496F4
Tritanopia (blue-blind)
#B08EAC
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba77f7;
/* rgb */ color: rgb(186, 119, 247);
/* oklch */ color: oklch(69.3% 0.189 306.3);
Tailwind
colors: {
  custom: {
    50: '#d2a0fa',
    500: '#ba77f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba77f7;
$custom-light: #d2a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba77f7",
  "rgb": {
    "r": 186,
    "g": 119,
    "b": 247
  },
  "hsl": {
    "h": 271.406,
    "s": 88.889,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69277,
    "c": 0.1893,
    "h": 306.3
  },
  "luminance": 0.30348
}

Semantic roles & 50–950 ramp

primary
#BA77F7
secondary
#E4F5D5
accent
#E6006D
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA77F7

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

Preview Lab → · Contrast checker → · Palette generator →

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