#BA8BF0#BA8BF0

#BA8BF0 is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.1% C 0.149 H 304.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#BA8BF0
RGBrgb(186, 139, 240)
HSLhsl(268, 77%, 74%)
HSVhsv(268, 42%, 94%)
CMYKcmyk(22.5%, 42.1%, 0%, 5.9%)
CIE-LABlab(65.90, 37.27, -44.26)
CIE-LCHlch(65.90, 57.87, 310.10°)
OKLaboklab(72.11% 0.0844 -0.1233)
OKLCHoklch(72.11% 0.149 304.4)
XYZxyz(45.2072, 35.1958, 86.8330)
Luminance0.3520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BF0 #C1F08B
analogous
#8B8FF0 #BA8BF0 #ED8BF0
triadic
#BA8BF0 #F0BA8B #8BF0BA
tetradic
#BA8BF0 #F08B8F #C1F08B #8BF0ED
square
#BA8BF0 #F08B8F #C1F08B #8BF0ED
split-complementary
#BA8BF0 #F0ED8B #8FF08B
monochromatic
#7A1FE2 #9A55E9 #BA8BF0 #DAC1F7 #EFE4FB

Accessibility & contrast

On white

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

On black

8.04
#BA8BF0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8BF0
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8BF0#FFFFFF#000000##000000
##BA8BF01.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#729FF4
Deuteranopia (green-blind)
#7DA0ED
Tritanopia (blue-blind)
#B19CB2
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba8bf0;
/* rgb */ color: rgb(186, 139, 240);
/* oklch */ color: oklch(72.1% 0.149 304.4);
Tailwind
colors: {
  custom: {
    50: '#d0adf5',
    500: '#ba8bf0',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bf0;
$custom-light: #d0adf5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bf0",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 240
  },
  "hsl": {
    "h": 267.921,
    "s": 77.099,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72111,
    "c": 0.14944,
    "h": 304.4
  },
  "luminance": 0.35196
}

Semantic roles & 50–950 ramp

primary
#BA8BF0
secondary
#E6F3D8
accent
#D90C7A
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8BF0

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

Preview Lab → · Contrast checker → · Palette generator →

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