#BA84EB#BA84EB

#BA84EB is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.7% C 0.155 H 307.0°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#BA84EB
RGBrgb(186, 132, 235)
HSLhsl(271, 72%, 72%)
HSVhsv(271, 44%, 92%)
CMYKcmyk(20.9%, 43.8%, 0%, 7.8%)
CIE-LABlab(64.11, 39.99, -44.32)
CIE-LCHlch(64.11, 59.69, 312.06°)
OKLaboklab(70.69% 0.0932 -0.1235)
OKLCHoklch(70.69% 0.155 307)
XYZxyz(43.4934, 32.9402, 82.6480)
Luminance0.3294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA84EB #B5EB84
analogous
#8784EB #BA84EB #EB84E9
triadic
#BA84EB #EBBA84 #84EBBA
tetradic
#BA84EB #EB8784 #B5EB84 #84E9EB
square
#BA84EB #EB8784 #B5EB84 #84E9EB
split-complementary
#BA84EB #E9EB84 #84EB87
monochromatic
#7F22D2 #9C4FE2 #BA84EB #D8B9F4 #F0E5FB

Accessibility & contrast

On white

2.77
#BA84EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#BA84EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA84EB
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA84EB#FFFFFF#000000##000000
##BA84EB1.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B99EF
Deuteranopia (green-blind)
#799CE8
Tritanopia (blue-blind)
#B395AC
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba84eb;
/* rgb */ color: rgb(186, 132, 235);
/* oklch */ color: oklch(70.7% 0.155 307.0);
Tailwind
colors: {
  custom: {
    50: '#d0a9f2',
    500: '#ba84eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba84eb;
$custom-light: #d0a9f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba84eb",
  "rgb": {
    "r": 186,
    "g": 132,
    "b": 235
  },
  "hsl": {
    "h": 271.456,
    "s": 72.028,
    "l": 71.961
  },
  "oklch": {
    "l": 0.70691,
    "c": 0.1547,
    "h": 307
  },
  "luminance": 0.3294
}

Semantic roles & 50–950 ramp

primary
#BA84EB
secondary
#E5F2D8
accent
#D4116E
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #BA84EB

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

Preview Lab → · Contrast checker → · Palette generator →

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