#BA82EB#BA82EB

#BA82EB is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.4% C 0.158 H 307.4°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#BA82EB
RGBrgb(186, 130, 235)
HSLhsl(272, 72%, 72%)
HSVhsv(272, 45%, 92%)
CMYKcmyk(20.9%, 44.7%, 0%, 7.8%)
CIE-LABlab(63.67, 41.08, -45.00)
CIE-LCHlch(63.67, 60.93, 312.39°)
OKLaboklab(70.36% 0.0959 -0.1255)
OKLCHoklch(70.36% 0.158 307.4)
XYZxyz(43.2248, 32.4030, 82.5584)
Luminance0.3240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA82EB #B3EB82
analogous
#8682EB #BA82EB #EB82E8
triadic
#BA82EB #EBBA82 #82EBBA
tetradic
#BA82EB #EB8682 #B3EB82 #82E8EB
square
#BA82EB #EB8682 #B3EB82 #82E8EB
split-complementary
#BA82EB #E8EB82 #82EB86
monochromatic
#7F21D1 #9D4DE3 #BA82EB #D7B7F3 #F0E5FB

Accessibility & contrast

On white

2.81
#BA82EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#BA82EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA82EB
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA82EB#FFFFFF#000000##000000
##BA82EB1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898EF
Deuteranopia (green-blind)
#779BE8
Tritanopia (blue-blind)
#B393AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba82eb;
/* rgb */ color: rgb(186, 130, 235);
/* oklch */ color: oklch(70.4% 0.158 307.4);
Tailwind
colors: {
  custom: {
    50: '#d1a7f2',
    500: '#ba82eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba82eb;
$custom-light: #d1a7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba82eb",
  "rgb": {
    "r": 186,
    "g": 130,
    "b": 235
  },
  "hsl": {
    "h": 272,
    "s": 72.414,
    "l": 71.569
  },
  "oklch": {
    "l": 0.70362,
    "c": 0.15795,
    "h": 307.4
  },
  "luminance": 0.32403
}

Semantic roles & 50–950 ramp

primary
#BA82EB
secondary
#E4F2D7
accent
#D4116C
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA82EB

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

Preview Lab → · Contrast checker → · Palette generator →

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