#BA77DB#BA77DB

#BA77DB is a light, vivid purple. Relative luminance 0.287; OKLCH L 67.8% C 0.157 H 313.7°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#BA77DB
RGBrgb(186, 119, 219)
HSLhsl(280, 58%, 66%)
HSVhsv(280, 46%, 86%)
CMYKcmyk(15.1%, 45.7%, 0%, 14.1%)
CIE-LABlab(60.56, 43.54, -41.00)
CIE-LCHlch(60.56, 59.81, 316.72°)
OKLaboklab(67.79% 0.1088 -0.1138)
OKLCHoklch(67.79% 0.157 313.7)
XYZxyz(39.6306, 28.7482, 70.4654)
Luminance0.2875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA77DB #98DB77
analogous
#8877DB #BA77DB #DB77CA
triadic
#BA77DB #DBBA77 #77DBBA
tetradic
#BA77DB #DB8877 #98DB77 #77CADB
square
#BA77DB #DB8877 #98DB77 #77CADB
split-complementary
#BA77DB #CADB77 #77DB88
monochromatic
#812DAA #A147CE #BA77DB #D3A7E8 #EBD8F5

Accessibility & contrast

On white

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

On black

6.75
#BA77DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA77DB
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA77DB#FFFFFF#000000##000000
##BA77DB1.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#638EDF
Deuteranopia (green-blind)
#7594D8
Tritanopia (blue-blind)
#B7869F
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba77db;
/* rgb */ color: rgb(186, 119, 219);
/* oklch */ color: oklch(67.8% 0.157 313.7);
Tailwind
colors: {
  custom: {
    50: '#d0a0e6',
    500: '#ba77db',
    950: '#000000',
  },
}
SCSS
$custom: #ba77db;
$custom-light: #d0a0e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba77db",
  "rgb": {
    "r": 186,
    "g": 119,
    "b": 219
  },
  "hsl": {
    "h": 280.2,
    "s": 58.14,
    "l": 66.275
  },
  "oklch": {
    "l": 0.67787,
    "c": 0.15748,
    "h": 313.7
  },
  "luminance": 0.28747
}

Semantic roles & 50–950 ramp

primary
#BA77DB
secondary
#D1E7C7
accent
#C62057
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140F16
muted
#837E84

Preview Lab

Preview with #BA77DB

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

Preview Lab → · Contrast checker → · Palette generator →

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