#BA82E8#BA82E8

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

Color values

HEX#BA82E8
RGBrgb(186, 130, 232)
HSLhsl(273, 69%, 71%)
HSVhsv(273, 44%, 91%)
CMYKcmyk(19.8%, 44%, 0%, 9%)
CIE-LABlab(63.53, 40.41, -43.57)
CIE-LCHlch(63.53, 59.42, 312.85°)
OKLaboklab(70.21% 0.0955 -0.1213)
OKLCHoklch(70.21% 0.154 308.2)
XYZxyz(42.7950, 32.2311, 80.2950)
Luminance0.3223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA82E8 #B0E882
analogous
#8782E8 #BA82E8 #E882E3
triadic
#BA82E8 #E8BA82 #82E8BA
tetradic
#BA82E8 #E88782 #B0E882 #82E3E8
square
#BA82E8 #E88782 #B0E882 #82E3E8
split-complementary
#BA82E8 #E3E882 #82E887
monochromatic
#8025CA #9D4EDE #BA82E8 #D7B6F2 #F1E5FA

Accessibility & contrast

On white

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

On black

7.45
#BA82E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA82E8
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA82E8#FFFFFF#000000##000000
##BA82E81.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A98EC
Deuteranopia (green-blind)
#789BE5
Tritanopia (blue-blind)
#B492AA
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba82e8;
/* rgb */ color: rgb(186, 130, 232);
/* oklch */ color: oklch(70.2% 0.154 308.2);
Tailwind
colors: {
  custom: {
    50: '#d0a7f0',
    500: '#ba82e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba82e8;
$custom-light: #d0a7f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba82e8",
  "rgb": {
    "r": 186,
    "g": 130,
    "b": 232
  },
  "hsl": {
    "h": 272.941,
    "s": 68.919,
    "l": 70.98
  },
  "oklch": {
    "l": 0.70211,
    "c": 0.15438,
    "h": 308.2
  },
  "luminance": 0.32231
}

Semantic roles & 50–950 ramp

primary
#BA82E8
secondary
#E2F0D5
accent
#D1156A
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA82E8

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

Preview Lab → · Contrast checker → · Palette generator →

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