#BA77DC#BA77DC

#BA77DC is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.8% C 0.159 H 313.4°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#BA77DC
RGBrgb(186, 119, 220)
HSLhsl(280, 59%, 66%)
HSVhsv(280, 46%, 86%)
CMYKcmyk(15.5%, 45.9%, 0%, 13.7%)
CIE-LABlab(60.61, 43.76, -41.48)
CIE-LCHlch(60.61, 60.29, 316.53°)
OKLaboklab(67.84% 0.109 -0.1152)
OKLCHoklch(67.84% 0.159 313.4)
XYZxyz(39.7626, 28.8010, 71.1608)
Luminance0.2880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA77DC #99DC77
analogous
#8877DC #BA77DC #DC77CC
triadic
#BA77DC #DCBA77 #77DCBA
tetradic
#BA77DC #DC8877 #99DC77 #77CCDC
square
#BA77DC #DC8877 #99DC77 #77CCDC
split-complementary
#BA77DC #CCDC77 #77DC88
monochromatic
#812CAC #A146CF #BA77DC #D3A8E9 #EBD8F5

Accessibility & contrast

On white

3.11
#BA77DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#BA77DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA77DC
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA77DC#FFFFFF#000000##000000
##BA77DC1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#628EE0
Deuteranopia (green-blind)
#7494D9
Tritanopia (blue-blind)
#B7869F
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba77dc;
/* rgb */ color: rgb(186, 119, 220);
/* oklch */ color: oklch(67.8% 0.159 313.4);
Tailwind
colors: {
  custom: {
    50: '#d0a0e7',
    500: '#ba77dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba77dc;
$custom-light: #d0a0e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba77dc",
  "rgb": {
    "r": 186,
    "g": 119,
    "b": 220
  },
  "hsl": {
    "h": 279.802,
    "s": 59.064,
    "l": 66.471
  },
  "oklch": {
    "l": 0.67837,
    "c": 0.15861,
    "h": 313.4
  },
  "luminance": 0.288
}

Semantic roles & 50–950 ramp

primary
#BA77DC
secondary
#D2E8C7
accent
#C71F57
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140F16
muted
#837E84

Preview Lab

Preview with #BA77DC

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

Preview Lab → · Contrast checker → · Palette generator →

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