#BA8BF8#BA8BF8

#BA8BF8 is a light, vivid violet. Relative luminance 0.357; OKLCH L 72.5% C 0.159 H 302.5°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#BA8BF8
RGBrgb(186, 139, 248)
HSLhsl(266, 89%, 76%)
HSVhsv(266, 44%, 97%)
CMYKcmyk(25%, 44%, 0%, 2.7%)
CIE-LABlab(66.28, 39.12, -48.06)
CIE-LCHlch(66.28, 61.97, 309.15°)
OKLaboklab(72.52% 0.0856 -0.1344)
OKLCHoklch(72.52% 0.159 302.5)
XYZxyz(46.4219, 35.6817, 93.2304)
Luminance0.3568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BF8 #C9F88B
analogous
#8B92F8 #BA8BF8 #F18BF8
triadic
#BA8BF8 #F8BA8B #8BF8BA
tetradic
#BA8BF8 #F88B92 #C9F88B #8BF8F1
square
#BA8BF8 #F88B92 #C9F88B #8BF8F1
split-complementary
#BA8BF8 #F8F18B #92F88B
monochromatic
#7518F1 #9851F5 #BA8BF8 #DCC5FB #EEE2FD

Accessibility & contrast

On white

2.58
#BA8BF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#BA8BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8BF8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8BF8#FFFFFF#000000##000000
##BA8BF81.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA0FC
Deuteranopia (green-blind)
#78A1F5
Tritanopia (blue-blind)
#AF9EB6
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba8bf8;
/* rgb */ color: rgb(186, 139, 248);
/* oklch */ color: oklch(72.5% 0.159 302.5);
Tailwind
colors: {
  custom: {
    50: '#d1adfb',
    500: '#ba8bf8',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bf8;
$custom-light: #d1adfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bf8",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 248
  },
  "hsl": {
    "h": 265.872,
    "s": 88.618,
    "l": 75.882
  },
  "oklch": {
    "l": 0.72516,
    "c": 0.15934,
    "h": 302.5
  },
  "luminance": 0.35682
}

Semantic roles & 50–950 ramp

primary
#BA8BF8
secondary
#E8F5D6
accent
#E50083
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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