#BA84F6#BA84F6

#BA84F6 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.3% C 0.168 H 304.3°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#BA84F6
RGBrgb(186, 132, 246)
HSLhsl(268, 86%, 74%)
HSVhsv(268, 46%, 96%)
CMYKcmyk(24.4%, 46.3%, 0%, 3.5%)
CIE-LABlab(64.64, 42.49, -49.55)
CIE-LCHlch(64.64, 65.27, 310.62°)
OKLaboklab(71.26% 0.0948 -0.1387)
OKLCHoklch(71.26% 0.168 304.3)
XYZxyz(45.1320, 33.5956, 91.2779)
Luminance0.3360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA84F6 #C0F684
analogous
#8487F6 #BA84F6 #F384F6
triadic
#BA84F6 #F6BA84 #84F6BA
tetradic
#BA84F6 #F68487 #C0F684 #84F6F3
square
#BA84F6 #F68487 #C0F684 #84F6F3
split-complementary
#BA84F6 #F6F384 #87F684
monochromatic
#7A12EE #9A4BF2 #BA84F6 #DABDFA #EFE2FD

Accessibility & contrast

On white

2.72
#BA84F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#BA84F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA84F6
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA84F6#FFFFFF#000000##000000
##BA84F61.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#659BFA
Deuteranopia (green-blind)
#729DF3
Tritanopia (blue-blind)
#B098B1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba84f6;
/* rgb */ color: rgb(186, 132, 246);
/* oklch */ color: oklch(71.3% 0.168 304.3);
Tailwind
colors: {
  custom: {
    50: '#d1a9f9',
    500: '#ba84f6',
    950: '#000000',
  },
}
SCSS
$custom: #ba84f6;
$custom-light: #d1a9f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba84f6",
  "rgb": {
    "r": 186,
    "g": 132,
    "b": 246
  },
  "hsl": {
    "h": 268.421,
    "s": 86.364,
    "l": 74.118
  },
  "oklch": {
    "l": 0.71258,
    "c": 0.16796,
    "h": 304.3
  },
  "luminance": 0.33595
}

Semantic roles & 50–950 ramp

primary
#BA84F6
secondary
#E6F5D6
accent
#E30379
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA84F6

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

Preview Lab → · Contrast checker → · Palette generator →

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