#BA86F4#BA86F4

#BA86F4 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.5% C 0.162 H 304.4°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#BA86F4
RGBrgb(186, 134, 244)
HSLhsl(268, 83%, 74%)
HSVhsv(268, 45%, 96%)
CMYKcmyk(23.8%, 45.1%, 0%, 4.3%)
CIE-LABlab(64.98, 40.94, -47.91)
CIE-LCHlch(64.98, 63.02, 310.51°)
OKLaboklab(71.48% 0.0918 -0.1339)
OKLCHoklch(71.48% 0.162 304.4)
XYZxyz(45.1005, 34.0211, 89.7612)
Luminance0.3402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86F4 #C0F486
analogous
#8689F4 #BA86F4 #F186F4
triadic
#BA86F4 #F4BA86 #86F4BA
tetradic
#BA86F4 #F48689 #C0F486 #86F4F1
square
#BA86F4 #F48689 #C0F486 #86F4F1
split-complementary
#BA86F4 #F4F186 #89F486
monochromatic
#7A16EA #9A4EEF #BA86F4 #DABEF9 #EFE3FC

Accessibility & contrast

On white

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

On black

7.80
#BA86F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86F4
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86F4#FFFFFF#000000##000000
##BA86F41.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#699CF8
Deuteranopia (green-blind)
#759EF1
Tritanopia (blue-blind)
#B099B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba86f4;
/* rgb */ color: rgb(186, 134, 244);
/* oklch */ color: oklch(71.5% 0.162 304.4);
Tailwind
colors: {
  custom: {
    50: '#d1aaf8',
    500: '#ba86f4',
    950: '#000000',
  },
}
SCSS
$custom: #ba86f4;
$custom-light: #d1aaf8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86f4",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 244
  },
  "hsl": {
    "h": 268.364,
    "s": 83.333,
    "l": 74.118
  },
  "oklch": {
    "l": 0.7148,
    "c": 0.16237,
    "h": 304.4
  },
  "luminance": 0.34021
}

Semantic roles & 50–950 ramp

primary
#BA86F4
secondary
#E6F4D7
accent
#E00679
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA86F4

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

Preview Lab → · Contrast checker → · Palette generator →

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