#BA86F7#BA86F7

#BA86F7 is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.6% C 0.166 H 303.7°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#BA86F7
RGBrgb(186, 134, 247)
HSLhsl(268, 88%, 75%)
HSVhsv(268, 46%, 97%)
CMYKcmyk(24.7%, 45.7%, 0%, 3.1%)
CIE-LABlab(65.12, 41.63, -49.33)
CIE-LCHlch(65.12, 64.55, 310.16°)
OKLaboklab(71.64% 0.0922 -0.138)
OKLCHoklch(71.64% 0.166 303.7)
XYZxyz(45.5597, 34.2048, 92.1797)
Luminance0.3421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86F7 #C3F786
analogous
#868AF7 #BA86F7 #F386F7
triadic
#BA86F7 #F7BA86 #86F7BA
tetradic
#BA86F7 #F7868A #C3F786 #86F7F3
square
#BA86F7 #F7868A #C3F786 #86F7F3
split-complementary
#BA86F7 #F7F386 #8AF786
monochromatic
#7913EF #994DF3 #BA86F7 #DBBFFB #EFE2FD

Accessibility & contrast

On white

2.68
#BA86F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#BA86F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86F7
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86F7#FFFFFF#000000##000000
##BA86F71.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#679DFB
Deuteranopia (green-blind)
#749EF4
Tritanopia (blue-blind)
#B099B3
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba86f7;
/* rgb */ color: rgb(186, 134, 247);
/* oklch */ color: oklch(71.6% 0.166 303.7);
Tailwind
colors: {
  custom: {
    50: '#d1aafa',
    500: '#ba86f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba86f7;
$custom-light: #d1aafa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86f7",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 247
  },
  "hsl": {
    "h": 267.611,
    "s": 87.597,
    "l": 74.706
  },
  "oklch": {
    "l": 0.71637,
    "c": 0.16601,
    "h": 303.7
  },
  "luminance": 0.34205
}

Semantic roles & 50–950 ramp

primary
#BA86F7
secondary
#E7F5D6
accent
#E4017C
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA86F7

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

Preview Lab → · Contrast checker → · Palette generator →

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