#BA8BF1#BA8BF1

#BA8BF1 is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.2% C 0.151 H 304.1°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#BA8BF1
RGBrgb(186, 139, 241)
HSLhsl(268, 78%, 75%)
HSVhsv(268, 42%, 95%)
CMYKcmyk(22.8%, 42.3%, 0%, 5.5%)
CIE-LABlab(65.95, 37.50, -44.74)
CIE-LCHlch(65.95, 58.38, 309.97°)
OKLaboklab(72.16% 0.0845 -0.1247)
OKLCHoklch(72.16% 0.151 304.1)
XYZxyz(45.3562, 35.2554, 87.6175)
Luminance0.3525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BF1 #C2F18B
analogous
#8B8FF1 #BA8BF1 #ED8BF1
triadic
#BA8BF1 #F1BA8B #8BF1BA
tetradic
#BA8BF1 #F18B8F #C2F18B #8BF1ED
square
#BA8BF1 #F18B8F #C2F18B #8BF1ED
split-complementary
#BA8BF1 #F1ED8B #8FF18B
monochromatic
#791EE4 #9A54EA #BA8BF1 #DAC2F8 #EFE4FC

Accessibility & contrast

On white

2.61
#BA8BF1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#BA8BF1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8BF1
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8BF1#FFFFFF#000000##000000
##BA8BF11.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF5
Deuteranopia (green-blind)
#7CA0EE
Tritanopia (blue-blind)
#B19CB3
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba8bf1;
/* rgb */ color: rgb(186, 139, 241);
/* oklch */ color: oklch(72.2% 0.151 304.1);
Tailwind
colors: {
  custom: {
    50: '#d0adf6',
    500: '#ba8bf1',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bf1;
$custom-light: #d0adf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bf1",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 241
  },
  "hsl": {
    "h": 267.647,
    "s": 78.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72161,
    "c": 0.15067,
    "h": 304.1
  },
  "luminance": 0.35255
}

Semantic roles & 50–950 ramp

primary
#BA8BF1
secondary
#E7F4D7
accent
#DB0B7B
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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