#BA77FF#BA77FF

#BA77FF is a light, vivid violet. Relative luminance 0.309; OKLCH L 69.7% C 0.198 H 304.5°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#BA77FF
RGBrgb(186, 119, 255)
HSLhsl(270, 100%, 73%)
HSVhsv(270, 53%, 100%)
CMYKcmyk(27.1%, 53.3%, 0%, 0%)
CIE-LABlab(62.38, 51.53, -58.07)
CIE-LCHlch(62.38, 77.64, 311.58°)
OKLaboklab(69.73% 0.1124 -0.1635)
OKLCHoklch(69.73% 0.198 304.5)
XYZxyz(44.8926, 30.8530, 98.1785)
Luminance0.3085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA77FF #BCFF77
analogous
#7778FF #BA77FF #FE77FF
triadic
#BA77FF #FFBA77 #77FFBA
tetradic
#BA77FF #FF7778 #BCFF77 #77FFFE
square
#BA77FF #FF7778 #BCFF77 #77FFFE
split-complementary
#BA77FF #FFFE77 #78FF77
monochromatic
#7C00FC #9B3AFF #BA77FF #D9B4FF #EFE0FF

Accessibility & contrast

On white

2.93
#BA77FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#BA77FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA77FF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA77FF#FFFFFF#000000##000000
##BA77FF1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4895FF
Deuteranopia (green-blind)
#5E97FC
Tritanopia (blue-blind)
#AE90B0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba77ff;
/* rgb */ color: rgb(186, 119, 255);
/* oklch */ color: oklch(69.7% 0.198 304.5);
Tailwind
colors: {
  custom: {
    50: '#d2a0ff',
    500: '#ba77ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba77ff;
$custom-light: #d2a0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba77ff",
  "rgb": {
    "r": 186,
    "g": 119,
    "b": 255
  },
  "hsl": {
    "h": 269.559,
    "s": 100,
    "l": 73.333
  },
  "oklch": {
    "l": 0.69733,
    "c": 0.19846,
    "h": 304.5
  },
  "luminance": 0.30853
}

Semantic roles & 50–950 ramp

primary
#BA77FF
secondary
#E6F7D4
accent
#E60074
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA77FF

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

Preview Lab → · Contrast checker → · Palette generator →

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