#BA8EFE#BA8EFE

#BA8EFE is a light, vivid violet. Relative luminance 0.369; OKLCH L 73.3% C 0.162 H 300.6°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#BA8EFE
RGBrgb(186, 142, 254)
HSLhsl(264, 98%, 78%)
HSVhsv(264, 44%, 100%)
CMYKcmyk(26.8%, 44.1%, 0%, 0.4%)
CIE-LABlab(67.23, 38.88, -49.83)
CIE-LCHlch(67.23, 63.20, 307.96°)
OKLaboklab(73.33% 0.0825 -0.1395)
OKLCHoklch(73.33% 0.162 300.6)
XYZxyz(47.8080, 36.9407, 98.3583)
Luminance0.3694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EFE #D2FE8E
analogous
#8E9AFE #BA8EFE #F28EFE
triadic
#BA8EFE #FEBA8E #8EFEBA
tetradic
#BA8EFE #FE8E9A #D2FE8E #8EFEF2
square
#BA8EFE #FE8E9A #D2FE8E #8EFEF2
split-complementary
#BA8EFE #FEF28E #9AFE8E
monochromatic
#7015FD #9551FD #BA8EFE #DFCBFF #ECE1FF

Accessibility & contrast

On white

2.50
#BA8EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#BA8EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EFE
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EFE#FFFFFF#000000##000000
##BA8EFE1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA3FF
Deuteranopia (green-blind)
#78A3FB
Tritanopia (blue-blind)
#ADA2BA
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ba8efe;
/* rgb */ color: rgb(186, 142, 254);
/* oklch */ color: oklch(73.3% 0.162 300.6);
Tailwind
colors: {
  custom: {
    50: '#d1b0ff',
    500: '#ba8efe',
    950: '#000000',
  },
}
SCSS
$custom: #ba8efe;
$custom-light: #d1b0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8efe",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 263.571,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.73329,
    "c": 0.16209,
    "h": 300.6
  },
  "luminance": 0.36941
}

Semantic roles & 50–950 ramp

primary
#BA8EFE
secondary
#E9F7D4
accent
#E6008B
background
#FDFAFF
surface
#FAF5FF
border
#D3CFD7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA8EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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