#BA84F7#BA84F7

#BA84F7 is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.3% C 0.169 H 304.1°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#BA84F7
RGBrgb(186, 132, 247)
HSLhsl(268, 88%, 74%)
HSVhsv(268, 47%, 97%)
CMYKcmyk(24.7%, 46.6%, 0%, 3.1%)
CIE-LABlab(64.69, 42.72, -50.02)
CIE-LCHlch(64.69, 65.78, 310.50°)
OKLaboklab(71.31% 0.0949 -0.14)
OKLCHoklch(71.31% 0.169 304.1)
XYZxyz(45.2859, 33.6572, 92.0884)
Luminance0.3366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA84F7 #C1F784
analogous
#8488F7 #BA84F7 #F484F7
triadic
#BA84F7 #F7BA84 #84F7BA
tetradic
#BA84F7 #F78488 #C1F784 #84F7F4
square
#BA84F7 #F78488 #C1F784 #84F7F4
split-complementary
#BA84F7 #F7F484 #88F784
monochromatic
#7A11F0 #9A4BF3 #BA84F7 #DABDFB #EFE2FD

Accessibility & contrast

On white

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

On black

7.73
#BA84F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA84F7
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA84F7#FFFFFF#000000##000000
##BA84F71.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#649BFB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#B098B2
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba84f7;
/* rgb */ color: rgb(186, 132, 247);
/* oklch */ color: oklch(71.3% 0.169 304.1);
Tailwind
colors: {
  custom: {
    50: '#d1a9fa',
    500: '#ba84f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba84f7;
$custom-light: #d1a9fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba84f7",
  "rgb": {
    "r": 186,
    "g": 132,
    "b": 247
  },
  "hsl": {
    "h": 268.174,
    "s": 87.786,
    "l": 74.314
  },
  "oklch": {
    "l": 0.71311,
    "c": 0.16916,
    "h": 304.1
  },
  "luminance": 0.33657
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA84F7

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

Preview Lab → · Contrast checker → · Palette generator →

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