#BA8DFF#BA8DFF

#BA8DFF is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.2% C 0.165 H 300.6°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#BA8DFF
RGBrgb(186, 141, 255)
HSLhsl(264, 100%, 78%)
HSVhsv(264, 45%, 100%)
CMYKcmyk(27.1%, 44.7%, 0%, 0%)
CIE-LABlab(67.06, 39.67, -50.65)
CIE-LCHlch(67.06, 64.34, 308.06°)
OKLaboklab(73.21% 0.084 -0.1419)
OKLCHoklch(73.21% 0.165 300.6)
XYZxyz(47.8205, 36.7087, 99.1545)
Luminance0.3671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8DFF #D2FF8D
analogous
#8D99FF #BA8DFF #F38DFF
triadic
#BA8DFF #FFBA8D #8DFFBA
tetradic
#BA8DFF #FF8D99 #D2FF8D #8DFFF3
square
#BA8DFF #FF8D99 #D2FF8D #8DFFF3
split-complementary
#BA8DFF #FFF38D #99FF8D
monochromatic
#7013FF #9550FF #BA8DFF #DFCAFF #ECE0FF

Accessibility & contrast

On white

2.52
#BA8DFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#BA8DFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8DFF
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8DFF#FFFFFF#000000##000000
##BA8DFF1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA3FF
Deuteranopia (green-blind)
#76A3FC
Tritanopia (blue-blind)
#ADA1BA
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba8dff;
/* rgb */ color: rgb(186, 141, 255);
/* oklch */ color: oklch(73.2% 0.165 300.6);
Tailwind
colors: {
  custom: {
    50: '#d1afff',
    500: '#ba8dff',
    950: '#000000',
  },
}
SCSS
$custom: #ba8dff;
$custom-light: #d1afff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8dff",
  "rgb": {
    "r": 186,
    "g": 141,
    "b": 255
  },
  "hsl": {
    "h": 263.684,
    "s": 100,
    "l": 77.647
  },
  "oklch": {
    "l": 0.73213,
    "c": 0.1649,
    "h": 300.6
  },
  "luminance": 0.36709
}

Semantic roles & 50–950 ramp

primary
#BA8DFF
secondary
#E9F7D4
accent
#E6008B
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA8DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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