#BA8CFB#BA8CFB

#BA8CFB is a light, vivid violet. Relative luminance 0.362; OKLCH L 72.8% C 0.161 H 301.6°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#BA8CFB
RGBrgb(186, 140, 251)
HSLhsl(265, 93%, 77%)
HSVhsv(265, 44%, 98%)
CMYKcmyk(25.9%, 44.2%, 0%, 1.6%)
CIE-LABlab(66.64, 39.27, -49.13)
CIE-LCHlch(66.64, 62.89, 308.64°)
OKLaboklab(72.84% 0.0847 -0.1375)
OKLCHoklch(72.84% 0.161 301.6)
XYZxyz(47.0365, 36.1602, 95.7497)
Luminance0.3616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CFB #CDFB8C
analogous
#8C96FB #BA8CFB #F28CFB
triadic
#BA8CFB #FBBA8C #8CFBBA
tetradic
#BA8CFB #FB8C96 #CDFB8C #8CFBF2
square
#BA8CFB #FB8C96 #CDFB8C #8CFBF2
split-complementary
#BA8CFB #FBF28C #96FB8C
monochromatic
#7316F7 #9751F9 #BA8CFB #DDC7FD #EDE1FE

Accessibility & contrast

On white

2.55
#BA8CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#BA8CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8CFB
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8CFB#FFFFFF#000000##000000
##BA8CFB1.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA1FF
Deuteranopia (green-blind)
#78A2F8
Tritanopia (blue-blind)
#AE9FB8
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8cfb;
/* rgb */ color: rgb(186, 140, 251);
/* oklch */ color: oklch(72.8% 0.161 301.6);
Tailwind
colors: {
  custom: {
    50: '#d1aefd',
    500: '#ba8cfb',
    950: '#000000',
  },
}
SCSS
$custom: #ba8cfb;
$custom-light: #d1aefd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8cfb",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 264.865,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.72838,
    "c": 0.16148,
    "h": 301.6
  },
  "luminance": 0.3616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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