#BA77DF#BA77DF

#BA77DF is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.0% C 0.162 H 312.5°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#BA77DF
RGBrgb(186, 119, 223)
HSLhsl(279, 62%, 67%)
HSVhsv(279, 47%, 87%)
CMYKcmyk(16.6%, 46.6%, 0%, 12.5%)
CIE-LABlab(60.75, 44.40, -42.94)
CIE-LCHlch(60.75, 61.76, 315.96°)
OKLaboklab(67.99% 0.1094 -0.1194)
OKLCHoklch(67.99% 0.162 312.5)
XYZxyz(40.1635, 28.9613, 73.2721)
Luminance0.2896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA77DF #9CDF77
analogous
#8677DF #BA77DF #DF77D0
triadic
#BA77DF #DFBA77 #77DFBA
tetradic
#BA77DF #DF8677 #9CDF77 #77D0DF
square
#BA77DF #DF8677 #9CDF77 #77D0DF
split-complementary
#BA77DF #D0DF77 #77DF86
monochromatic
#812AB2 #A145D3 #BA77DF #D3A9EB #ECDAF6

Accessibility & contrast

On white

3.09
#BA77DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#BA77DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA77DF
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA77DF#FFFFFF#000000##000000
##BA77DF1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#608FE3
Deuteranopia (green-blind)
#7394DC
Tritanopia (blue-blind)
#B687A1
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba77df;
/* rgb */ color: rgb(186, 119, 223);
/* oklch */ color: oklch(68.0% 0.162 312.5);
Tailwind
colors: {
  custom: {
    50: '#d1a0e9',
    500: '#ba77df',
    950: '#000000',
  },
}
SCSS
$custom: #ba77df;
$custom-light: #d1a0e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba77df",
  "rgb": {
    "r": 186,
    "g": 119,
    "b": 223
  },
  "hsl": {
    "h": 278.654,
    "s": 61.905,
    "l": 67.059
  },
  "oklch": {
    "l": 0.67989,
    "c": 0.16198,
    "h": 312.5
  },
  "luminance": 0.2896
}

Semantic roles & 50–950 ramp

primary
#BA77DF
secondary
#D4E9C8
accent
#CA1C5A
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140F16
muted
#837E84

Preview Lab

Preview with #BA77DF

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

Preview Lab → · Contrast checker → · Palette generator →

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