#BA8BFE#BA8BFE

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

Color values

HEX#BA8BFE
RGBrgb(186, 139, 254)
HSLhsl(265, 98%, 77%)
HSVhsv(265, 45%, 100%)
CMYKcmyk(26.8%, 45.3%, 0%, 0.4%)
CIE-LABlab(66.57, 40.53, -50.89)
CIE-LCHlch(66.57, 65.05, 308.54°)
OKLaboklab(72.83% 0.0865 -0.1426)
OKLCHoklch(72.83% 0.167 301.2)
XYZxyz(47.3677, 36.0600, 98.2115)
Luminance0.3606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BFE #CFFE8B
analogous
#8B96FE #BA8BFE #F48BFE
triadic
#BA8BFE #FEBA8B #8BFEBA
tetradic
#BA8BFE #FE8B96 #CFFE8B #8BFEF4
square
#BA8BFE #FE8B96 #CFFE8B #8BFEF4
split-complementary
#BA8BFE #FEF48B #96FE8B
monochromatic
#7212FD #964EFD #BA8BFE #DEC8FF #EDE1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA8BFE#FFFFFF#000000##000000
##BA8BFE1.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)
#6AA1FF
Deuteranopia (green-blind)
#75A1FB
Tritanopia (blue-blind)
#AD9FB8
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8bfe;
/* rgb */ color: rgb(186, 139, 254);
/* oklch */ color: oklch(72.8% 0.167 301.2);
Tailwind
colors: {
  custom: {
    50: '#d1adff',
    500: '#ba8bfe',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bfe;
$custom-light: #d1adff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bfe",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 254
  },
  "hsl": {
    "h": 264.522,
    "s": 98.291,
    "l": 77.059
  },
  "oklch": {
    "l": 0.72828,
    "c": 0.16676,
    "h": 301.2
  },
  "luminance": 0.3606
}

Semantic roles & 50–950 ramp

primary
#BA8BFE
secondary
#E9F7D4
accent
#E60088
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA8BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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