#BA8BFB#BA8BFB

#BA8BFB is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.7% C 0.163 H 301.9°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#BA8BFB
RGBrgb(186, 139, 251)
HSLhsl(265, 93%, 76%)
HSVhsv(265, 45%, 98%)
CMYKcmyk(25.9%, 44.6%, 0%, 1.6%)
CIE-LABlab(66.42, 39.82, -49.48)
CIE-LCHlch(66.42, 63.51, 308.83°)
OKLaboklab(72.67% 0.0861 -0.1385)
OKLCHoklch(72.67% 0.163 301.9)
XYZxyz(46.8910, 35.8693, 95.7012)
Luminance0.3587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BFB #CCFB8B
analogous
#8B94FB #BA8BFB #F28BFB
triadic
#BA8BFB #FBBA8B #8BFBBA
tetradic
#BA8BFB #FB8B94 #CCFB8B #8BFBF2
square
#BA8BFB #FB8B94 #CCFB8B #8BFBF2
split-complementary
#BA8BFB #FBF28B #94FB8B
monochromatic
#7415F7 #9750F9 #BA8BFB #DDC6FD #EDE1FE

Accessibility & contrast

On white

2.57
#BA8BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#BA8BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8BFB
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8BFB#FFFFFF#000000##000000
##BA8BFB1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA1FF
Deuteranopia (green-blind)
#76A1F8
Tritanopia (blue-blind)
#AE9EB7
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba8bfb;
/* rgb */ color: rgb(186, 139, 251);
/* oklch */ color: oklch(72.7% 0.163 301.9);
Tailwind
colors: {
  custom: {
    50: '#d1adfd',
    500: '#ba8bfb',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bfb;
$custom-light: #d1adfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bfb",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 251
  },
  "hsl": {
    "h": 265.179,
    "s": 93.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72671,
    "c": 0.16305,
    "h": 301.9
  },
  "luminance": 0.35869
}

Semantic roles & 50–950 ramp

primary
#BA8BFB
secondary
#E8F6D5
accent
#E60085
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA8BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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