#BA8CFA#BA8CFA

#BA8CFA is a light, vivid violet. Relative luminance 0.361; OKLCH L 72.8% C 0.160 H 301.9°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#BA8CFA
RGBrgb(186, 140, 250)
HSLhsl(265, 92%, 76%)
HSVhsv(265, 44%, 98%)
CMYKcmyk(25.6%, 44%, 0%, 2%)
CIE-LABlab(66.59, 39.04, -48.65)
CIE-LCHlch(66.59, 62.38, 308.74°)
OKLaboklab(72.79% 0.0846 -0.1361)
OKLCHoklch(72.79% 0.16 301.9)
XYZxyz(46.8793, 36.0973, 94.9217)
Luminance0.3610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CFA #CCFA8C
analogous
#8C95FA #BA8CFA #F18CFA
triadic
#BA8CFA #FABA8C #8CFABA
tetradic
#BA8CFA #FA8C95 #CCFA8C #8CFAF1
square
#BA8CFA #FA8C95 #CCFA8C #8CFAF1
split-complementary
#BA8CFA #FAF18C #95FA8C
monochromatic
#7417F5 #9751F7 #BA8CFA #DDC7FD #EDE2FE

Accessibility & contrast

On white

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

On black

8.22
#BA8CFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8CFA
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8CFA#FFFFFF#000000##000000
##BA8CFA1.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA1FE
Deuteranopia (green-blind)
#78A2F7
Tritanopia (blue-blind)
#AE9FB7
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8cfa;
/* rgb */ color: rgb(186, 140, 250);
/* oklch */ color: oklch(72.8% 0.160 301.9);
Tailwind
colors: {
  custom: {
    50: '#d1aefc',
    500: '#ba8cfa',
    950: '#000000',
  },
}
SCSS
$custom: #ba8cfa;
$custom-light: #d1aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8cfa",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 250
  },
  "hsl": {
    "h": 265.091,
    "s": 91.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72786,
    "c": 0.16024,
    "h": 301.9
  },
  "luminance": 0.36097
}

Semantic roles & 50–950 ramp

primary
#BA8CFA
secondary
#E8F6D5
accent
#E60086
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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