#BA80EB#BA80EB

#BA80EB is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.0% C 0.161 H 307.8°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#BA80EB
RGBrgb(186, 128, 235)
HSLhsl(273, 73%, 71%)
HSVhsv(273, 46%, 92%)
CMYKcmyk(20.9%, 45.5%, 0%, 7.8%)
CIE-LABlab(63.24, 42.17, -45.69)
CIE-LCHlch(63.24, 62.17, 312.71°)
OKLaboklab(70.04% 0.0987 -0.1274)
OKLCHoklch(70.04% 0.161 307.8)
XYZxyz(42.9613, 31.8761, 82.4706)
Luminance0.3188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA80EB #B1EB80
analogous
#8480EB #BA80EB #EB80E7
triadic
#BA80EB #EBBA80 #80EBBA
tetradic
#BA80EB #EB8480 #B1EB80 #80E7EB
square
#BA80EB #EB8480 #B1EB80 #80E7EB
split-complementary
#BA80EB #E7EB80 #80EB84
monochromatic
#8021D0 #9D4BE3 #BA80EB #D7B5F3 #F1E5FB

Accessibility & contrast

On white

2.85
#BA80EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#BA80EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA80EB
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA80EB#FFFFFF#000000##000000
##BA80EB1.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6697EF
Deuteranopia (green-blind)
#759AE8
Tritanopia (blue-blind)
#B391AA
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba80eb;
/* rgb */ color: rgb(186, 128, 235);
/* oklch */ color: oklch(70.0% 0.161 307.8);
Tailwind
colors: {
  custom: {
    50: '#d1a6f2',
    500: '#ba80eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba80eb;
$custom-light: #d1a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba80eb",
  "rgb": {
    "r": 186,
    "g": 128,
    "b": 235
  },
  "hsl": {
    "h": 272.523,
    "s": 72.789,
    "l": 71.176
  },
  "oklch": {
    "l": 0.70037,
    "c": 0.16119,
    "h": 307.8
  },
  "luminance": 0.31876
}

Semantic roles & 50–950 ramp

primary
#BA80EB
secondary
#E2F1D5
accent
#D5116A
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA80EB

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

Preview Lab → · Contrast checker → · Palette generator →

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