#BA84FC#BA84FC

#BA84FC is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.6% C 0.175 H 303.0°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#BA84FC
RGBrgb(186, 132, 252)
HSLhsl(267, 95%, 75%)
HSVhsv(267, 48%, 99%)
CMYKcmyk(26.2%, 47.6%, 0%, 1.2%)
CIE-LABlab(64.94, 43.88, -52.37)
CIE-LCHlch(64.94, 68.32, 309.96°)
OKLaboklab(71.58% 0.0955 -0.1469)
OKLCHoklch(71.58% 0.175 303)
XYZxyz(46.0678, 33.9699, 96.2065)
Luminance0.3397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA84FC #C6FC84
analogous
#848AFC #BA84FC #F684FC
triadic
#BA84FC #FCBA84 #84FCBA
tetradic
#BA84FC #FC848A #C6FC84 #84FCF6
square
#BA84FC #FC848A #C6FC84 #84FCF6
split-complementary
#BA84FC #FCF684 #8AFC84
monochromatic
#770DF9 #9848FB #BA84FC #DCC0FD #EEE1FE

Accessibility & contrast

On white

2.69
#BA84FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#BA84FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA84FC
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA84FC#FFFFFF#000000##000000
##BA84FC1.002.697.797.79
#FFFFFF2.691.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#6E9DF9
Tritanopia (blue-blind)
#AE99B4
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba84fc;
/* rgb */ color: rgb(186, 132, 252);
/* oklch */ color: oklch(71.6% 0.175 303.0);
Tailwind
colors: {
  custom: {
    50: '#d1a9fe',
    500: '#ba84fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba84fc;
$custom-light: #d1a9fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba84fc",
  "rgb": {
    "r": 186,
    "g": 132,
    "b": 252
  },
  "hsl": {
    "h": 267,
    "s": 95.238,
    "l": 75.294
  },
  "oklch": {
    "l": 0.71578,
    "c": 0.17518,
    "h": 303
  },
  "luminance": 0.3397
}

Semantic roles & 50–950 ramp

primary
#BA84FC
secondary
#E7F6D5
accent
#E6007E
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA84FC

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

Preview Lab → · Contrast checker → · Palette generator →

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