#BA86F8#BA86F8

#BA86F8 is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.7% C 0.167 H 303.5°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#BA86F8
RGBrgb(186, 134, 248)
HSLhsl(267, 89%, 75%)
HSVhsv(267, 46%, 97%)
CMYKcmyk(25%, 46%, 0%, 2.7%)
CIE-LABlab(65.17, 41.86, -49.80)
CIE-LCHlch(65.17, 65.06, 310.05°)
OKLaboklab(71.69% 0.0923 -0.1394)
OKLCHoklch(71.69% 0.167 303.5)
XYZxyz(45.7144, 34.2667, 92.9945)
Luminance0.3427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86F8 #C4F886
analogous
#868BF8 #BA86F8 #F386F8
triadic
#BA86F8 #F8BA86 #86F8BA
tetradic
#BA86F8 #F8868B #C4F886 #86F8F3
square
#BA86F8 #F8868B #C4F886 #86F8F3
split-complementary
#BA86F8 #F8F386 #8BF886
monochromatic
#7812F1 #994CF5 #BA86F8 #DBC0FB #EFE2FD

Accessibility & contrast

On white

2.67
#BA86F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#BA86F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86F8
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86F8#FFFFFF#000000##000000
##BA86F81.002.677.857.85
#FFFFFF2.671.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#669DFC
Deuteranopia (green-blind)
#739EF5
Tritanopia (blue-blind)
#AF9AB3
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba86f8;
/* rgb */ color: rgb(186, 134, 248);
/* oklch */ color: oklch(71.7% 0.167 303.5);
Tailwind
colors: {
  custom: {
    50: '#d1aafb',
    500: '#ba86f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba86f8;
$custom-light: #d1aafb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86f8",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 248
  },
  "hsl": {
    "h": 267.368,
    "s": 89.063,
    "l": 74.902
  },
  "oklch": {
    "l": 0.71689,
    "c": 0.16722,
    "h": 303.5
  },
  "luminance": 0.34267
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA86F8

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

Preview Lab → · Contrast checker → · Palette generator →

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