#BA82EC#BA82EC

#BA82EC is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.4% C 0.159 H 307.1°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#BA82EC
RGBrgb(186, 130, 236)
HSLhsl(272, 74%, 72%)
HSVhsv(272, 45%, 93%)
CMYKcmyk(21.2%, 44.9%, 0%, 7.5%)
CIE-LABlab(63.72, 41.30, -45.48)
CIE-LCHlch(63.72, 61.44, 312.24°)
OKLaboklab(70.41% 0.0961 -0.1269)
OKLCHoklch(70.41% 0.159 307.1)
XYZxyz(43.3696, 32.4609, 83.3214)
Luminance0.3246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA82EC #B4EC82
analogous
#8582EC #BA82EC #EC82E9
triadic
#BA82EC #ECBA82 #82ECBA
tetradic
#BA82EC #EC8582 #B4EC82 #82E9EC
square
#BA82EC #EC8582 #B4EC82 #82E9EC
split-complementary
#BA82EC #E9EC82 #82EC85
monochromatic
#7F20D3 #9D4DE4 #BA82EC #D7B7F4 #F0E4FB

Accessibility & contrast

On white

2.80
#BA82EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.49
#BA82EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA82EC
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA82EC#FFFFFF#000000##000000
##BA82EC1.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898F0
Deuteranopia (green-blind)
#769BE9
Tritanopia (blue-blind)
#B393AC
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba82ec;
/* rgb */ color: rgb(186, 130, 236);
/* oklch */ color: oklch(70.4% 0.159 307.1);
Tailwind
colors: {
  custom: {
    50: '#d1a7f2',
    500: '#ba82ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba82ec;
$custom-light: #d1a7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba82ec",
  "rgb": {
    "r": 186,
    "g": 130,
    "b": 236
  },
  "hsl": {
    "h": 271.698,
    "s": 73.611,
    "l": 71.765
  },
  "oklch": {
    "l": 0.70414,
    "c": 0.15914,
    "h": 307.1
  },
  "luminance": 0.3246
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA82EC

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

Preview Lab → · Contrast checker → · Palette generator →

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