#BA8EFF#BA8EFF

#BA8EFF is a light, vivid violet. Relative luminance 0.370; OKLCH L 73.4% C 0.163 H 300.4°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#BA8EFF
RGBrgb(186, 142, 255)
HSLhsl(263, 100%, 78%)
HSVhsv(263, 44%, 100%)
CMYKcmyk(27.1%, 44.3%, 0%, 0%)
CIE-LABlab(67.28, 39.12, -50.30)
CIE-LCHlch(67.28, 63.72, 307.87°)
OKLaboklab(73.38% 0.0826 -0.1409)
OKLCHoklch(73.38% 0.163 300.4)
XYZxyz(47.9686, 37.0049, 99.2039)
Luminance0.3700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EFF #D3FF8E
analogous
#8E9AFF #BA8EFF #F38EFF
triadic
#BA8EFF #FFBA8E #8EFFBA
tetradic
#BA8EFF #FF8E9A #D3FF8E #8EFFF3
square
#BA8EFF #FF8E9A #D3FF8E #8EFFF3
split-complementary
#BA8EFF #FFF38E #9AFF8E
monochromatic
#6F14FF #9551FF #BA8EFF #DFCBFF #ECE0FF

Accessibility & contrast

On white

2.50
#BA8EFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#BA8EFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EFF
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EFF#FFFFFF#000000##000000
##BA8EFF1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA3FF
Deuteranopia (green-blind)
#77A3FC
Tritanopia (blue-blind)
#ADA2BA
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ba8eff;
/* rgb */ color: rgb(186, 142, 255);
/* oklch */ color: oklch(73.4% 0.163 300.4);
Tailwind
colors: {
  custom: {
    50: '#d1b0ff',
    500: '#ba8eff',
    950: '#000000',
  },
}
SCSS
$custom: #ba8eff;
$custom-light: #d1b0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8eff",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 255
  },
  "hsl": {
    "h": 263.363,
    "s": 100,
    "l": 77.843
  },
  "oklch": {
    "l": 0.7338,
    "c": 0.16334,
    "h": 300.4
  },
  "luminance": 0.37005
}

Semantic roles & 50–950 ramp

primary
#BA8EFF
secondary
#E9F7D4
accent
#E6008C
background
#FDFAFF
surface
#FAF5FF
border
#D3CFD7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA8EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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