#BA82E7#BA82E7

#BA82E7 is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.2% C 0.153 H 308.5°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#BA82E7
RGBrgb(186, 130, 231)
HSLhsl(273, 68%, 71%)
HSVhsv(273, 44%, 91%)
CMYKcmyk(19.5%, 43.7%, 0%, 9.4%)
CIE-LABlab(63.49, 40.19, -43.08)
CIE-LCHlch(63.49, 58.92, 313.01°)
OKLaboklab(70.16% 0.0953 -0.1199)
OKLCHoklch(70.16% 0.153 308.5)
XYZxyz(42.6534, 32.1744, 79.5491)
Luminance0.3217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA82E7 #AFE782
analogous
#8782E7 #BA82E7 #E782E2
triadic
#BA82E7 #E7BA82 #82E7BA
tetradic
#BA82E7 #E78782 #AFE782 #82E2E7
square
#BA82E7 #E78782 #AFE782 #82E2E7
split-complementary
#BA82E7 #E2E782 #82E787
monochromatic
#8026C8 #9E4FDD #BA82E7 #D6B5F1 #F1E5FA

Accessibility & contrast

On white

2.82
#BA82E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#BA82E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA82E7
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA82E7#FFFFFF#000000##000000
##BA82E71.002.827.437.43
#FFFFFF2.821.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B97EB
Deuteranopia (green-blind)
#799BE4
Tritanopia (blue-blind)
#B492AA
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba82e7;
/* rgb */ color: rgb(186, 130, 231);
/* oklch */ color: oklch(70.2% 0.153 308.5);
Tailwind
colors: {
  custom: {
    50: '#d0a7ef',
    500: '#ba82e7',
    950: '#000000',
  },
}
SCSS
$custom: #ba82e7;
$custom-light: #d0a7ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba82e7",
  "rgb": {
    "r": 186,
    "g": 130,
    "b": 231
  },
  "hsl": {
    "h": 273.267,
    "s": 67.785,
    "l": 70.784
  },
  "oklch": {
    "l": 0.7016,
    "c": 0.15319,
    "h": 308.5
  },
  "luminance": 0.32174
}

Semantic roles & 50–950 ramp

primary
#BA82E7
secondary
#E1F0D5
accent
#D01669
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA82E7

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

Preview Lab → · Contrast checker → · Palette generator →

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