#BA8EF9#BA8EF9

#BA8EF9 is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.1% C 0.156 H 301.6°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#BA8EF9
RGBrgb(186, 142, 249)
HSLhsl(265, 90%, 77%)
HSVhsv(265, 43%, 98%)
CMYKcmyk(25.3%, 43%, 0%, 2.4%)
CIE-LABlab(66.99, 37.70, -47.48)
CIE-LCHlch(66.99, 60.63, 308.45°)
OKLaboklab(73.07% 0.0817 -0.1327)
OKLCHoklch(73.07% 0.156 301.6)
XYZxyz(47.0178, 36.6246, 94.1964)
Luminance0.3663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EF9 #CDF98E
analogous
#8E98F9 #BA8EF9 #F08EF9
triadic
#BA8EF9 #F9BA8E #8EF9BA
tetradic
#BA8EF9 #F98E98 #CDF98E #8EF9F0
square
#BA8EF9 #F98E98 #CDF98E #8EF9F0
split-complementary
#BA8EF9 #F9F08E #98F98E
monochromatic
#731AF3 #9754F6 #BA8EF9 #DDC8FC #EDE2FD

Accessibility & contrast

On white

2.52
#BA8EF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#BA8EF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EF9
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EF9#FFFFFF#000000##000000
##BA8EF91.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A2FD
Deuteranopia (green-blind)
#7BA3F6
Tritanopia (blue-blind)
#AFA0B8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba8ef9;
/* rgb */ color: rgb(186, 142, 249);
/* oklch */ color: oklch(73.1% 0.156 301.6);
Tailwind
colors: {
  custom: {
    50: '#d1affb',
    500: '#ba8ef9',
    950: '#000000',
  },
}
SCSS
$custom: #ba8ef9;
$custom-light: #d1affb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8ef9",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 249
  },
  "hsl": {
    "h": 264.673,
    "s": 89.916,
    "l": 76.667
  },
  "oklch": {
    "l": 0.73072,
    "c": 0.15584,
    "h": 301.6
  },
  "luminance": 0.36625
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8EF9

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

Preview Lab → · Contrast checker → · Palette generator →

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