#BA8CF9#BA8CF9

#BA8CF9 is a light, vivid violet. Relative luminance 0.360; OKLCH L 72.7% C 0.159 H 302.1°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#BA8CF9
RGBrgb(186, 140, 249)
HSLhsl(265, 90%, 76%)
HSVhsv(265, 44%, 98%)
CMYKcmyk(25.3%, 43.8%, 0%, 2.4%)
CIE-LABlab(66.55, 38.81, -48.18)
CIE-LCHlch(66.55, 61.87, 308.85°)
OKLaboklab(72.74% 0.0844 -0.1347)
OKLCHoklch(72.74% 0.159 302.1)
XYZxyz(46.7229, 36.0348, 94.0981)
Luminance0.3604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CF9 #CBF98C
analogous
#8C95F9 #BA8CF9 #F18CF9
triadic
#BA8CF9 #F9BA8C #8CF9BA
tetradic
#BA8CF9 #F98C95 #CBF98C #8CF9F1
square
#BA8CF9 #F98C95 #CBF98C #8CF9F1
split-complementary
#BA8CF9 #F9F18C #95F98C
monochromatic
#7418F3 #9752F6 #BA8CF9 #DDC6FC #EEE2FD

Accessibility & contrast

On white

2.56
#BA8CF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#BA8CF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8CF9
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8CF9#FFFFFF#000000##000000
##BA8CF91.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA1FD
Deuteranopia (green-blind)
#79A1F6
Tritanopia (blue-blind)
#AF9FB7
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8cf9;
/* rgb */ color: rgb(186, 140, 249);
/* oklch */ color: oklch(72.7% 0.159 302.1);
Tailwind
colors: {
  custom: {
    50: '#d1aefc',
    500: '#ba8cf9',
    950: '#000000',
  },
}
SCSS
$custom: #ba8cf9;
$custom-light: #d1aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8cf9",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 249
  },
  "hsl": {
    "h": 265.321,
    "s": 90.083,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72735,
    "c": 0.159,
    "h": 302.1
  },
  "luminance": 0.36035
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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