#BA8BF6#BA8BF6

#BA8BF6 is a light, vivid violet. Relative luminance 0.356; OKLCH L 72.4% C 0.157 H 303.0°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#BA8BF6
RGBrgb(186, 139, 246)
HSLhsl(266, 86%, 75%)
HSVhsv(266, 43%, 96%)
CMYKcmyk(24.4%, 43.5%, 0%, 3.5%)
CIE-LABlab(66.18, 38.66, -47.11)
CIE-LCHlch(66.18, 60.94, 309.37°)
OKLaboklab(72.41% 0.0853 -0.1316)
OKLCHoklch(72.41% 0.157 303)
XYZxyz(46.1133, 35.5582, 91.6050)
Luminance0.3556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BF6 #C7F68B
analogous
#8B91F6 #BA8BF6 #EF8BF6
triadic
#BA8BF6 #F6BA8B #8BF6BA
tetradic
#BA8BF6 #F68B91 #C7F68B #8BF6EF
square
#BA8BF6 #F68B91 #C7F68B #8BF6EF
split-complementary
#BA8BF6 #F6EF8B #91F68B
monochromatic
#7619ED #9852F2 #BA8BF6 #DCC4FA #EEE3FD

Accessibility & contrast

On white

2.59
#BA8BF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#BA8BF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8BF6
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8BF6#FFFFFF#000000##000000
##BA8BF61.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0FA
Deuteranopia (green-blind)
#79A1F3
Tritanopia (blue-blind)
#B09DB5
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba8bf6;
/* rgb */ color: rgb(186, 139, 246);
/* oklch */ color: oklch(72.4% 0.157 303.0);
Tailwind
colors: {
  custom: {
    50: '#d1adf9',
    500: '#ba8bf6',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bf6;
$custom-light: #d1adf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bf6",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 246
  },
  "hsl": {
    "h": 266.355,
    "s": 85.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.72413,
    "c": 0.15687,
    "h": 303
  },
  "luminance": 0.35558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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