#BA82EF#BA82EF

#BA82EF is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.6% C 0.163 H 306.4°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#BA82EF
RGBrgb(186, 130, 239)
HSLhsl(271, 77%, 72%)
HSVhsv(271, 46%, 94%)
CMYKcmyk(22.2%, 45.6%, 0%, 6.3%)
CIE-LABlab(63.87, 41.98, -46.91)
CIE-LCHlch(63.87, 62.95, 311.82°)
OKLaboklab(70.57% 0.0965 -0.131)
OKLCHoklch(70.57% 0.163 306.4)
XYZxyz(43.8092, 32.6367, 85.6362)
Luminance0.3264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA82EF #B7EF82
analogous
#8482EF #BA82EF #EF82ED
triadic
#BA82EF #EFBA82 #82EFBA
tetradic
#BA82EF #EF8482 #B7EF82 #82EDEF
square
#BA82EF #EF8482 #B7EF82 #82EDEF
split-complementary
#BA82EF #EDEF82 #82EF84
monochromatic
#7E1CDB #9C4CE8 #BA82EF #D8B8F6 #F0E4FC

Accessibility & contrast

On white

2.79
#BA82EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#BA82EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA82EF
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA82EF#FFFFFF#000000##000000
##BA82EF1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6699F3
Deuteranopia (green-blind)
#749BEC
Tritanopia (blue-blind)
#B294AD
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba82ef;
/* rgb */ color: rgb(186, 130, 239);
/* oklch */ color: oklch(70.6% 0.163 306.4);
Tailwind
colors: {
  custom: {
    50: '#d1a7f4',
    500: '#ba82ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba82ef;
$custom-light: #d1a7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba82ef",
  "rgb": {
    "r": 186,
    "g": 130,
    "b": 239
  },
  "hsl": {
    "h": 270.826,
    "s": 77.305,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70568,
    "c": 0.16273,
    "h": 306.4
  },
  "luminance": 0.32636
}

Semantic roles & 50–950 ramp

primary
#BA82EF
secondary
#E5F3D8
accent
#DA0C70
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA82EF

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

Preview Lab → · Contrast checker → · Palette generator →

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