#BA77F8#BA77F8

#BA77F8 is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.3% C 0.190 H 306.0°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#BA77F8
RGBrgb(186, 119, 248)
HSLhsl(271, 90%, 72%)
HSVhsv(271, 52%, 97%)
CMYKcmyk(25%, 52%, 0%, 2.7%)
CIE-LABlab(62.01, 49.93, -54.82)
CIE-LCHlch(62.01, 74.15, 312.32°)
OKLaboklab(69.33% 0.112 -0.154)
OKLCHoklch(69.33% 0.19 306)
XYZxyz(43.7863, 30.4104, 92.3518)
Luminance0.3041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA77F8 #B5F877
analogous
#7A77F8 #BA77F8 #F877F5
triadic
#BA77F8 #F8BA77 #77F8BA
tetradic
#BA77F8 #F87A77 #B5F877 #77F5F8
square
#BA77F8 #F87A77 #B5F877 #77F5F8
split-complementary
#BA77F8 #F5F877 #77F87A
monochromatic
#7F0CE9 #9C3DF5 #BA77F8 #D8B1FB #F0E2FE

Accessibility & contrast

On white

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

On black

7.08
#BA77F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA77F8
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA77F8#FFFFFF#000000##000000
##BA77F81.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E94FC
Deuteranopia (green-blind)
#6396F5
Tritanopia (blue-blind)
#B08EAC
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba77f8;
/* rgb */ color: rgb(186, 119, 248);
/* oklch */ color: oklch(69.3% 0.190 306.0);
Tailwind
colors: {
  custom: {
    50: '#d2a0fb',
    500: '#ba77f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba77f8;
$custom-light: #d2a0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba77f8",
  "rgb": {
    "r": 186,
    "g": 119,
    "b": 248
  },
  "hsl": {
    "h": 271.163,
    "s": 90.21,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69333,
    "c": 0.19045,
    "h": 306
  },
  "luminance": 0.3041
}

Semantic roles & 50–950 ramp

primary
#BA77F8
secondary
#E5F6D5
accent
#E6006E
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA77F8

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

Preview Lab → · Contrast checker → · Palette generator →

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