#BA8EFC#BA8EFC

#BA8EFC is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.2% C 0.160 H 301.0°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#BA8EFC
RGBrgb(186, 142, 252)
HSLhsl(264, 95%, 77%)
HSVhsv(264, 44%, 99%)
CMYKcmyk(26.2%, 43.7%, 0%, 1.2%)
CIE-LABlab(67.14, 38.41, -48.89)
CIE-LCHlch(67.14, 62.17, 308.15°)
OKLaboklab(73.22% 0.0822 -0.1368)
OKLCHoklch(73.22% 0.16 301)
XYZxyz(47.4894, 36.8132, 96.6804)
Luminance0.3681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EFC #D0FC8E
analogous
#8E99FC #BA8EFC #F18EFC
triadic
#BA8EFC #FCBA8E #8EFCBA
tetradic
#BA8EFC #FC8E99 #D0FC8E #8EFCF1
square
#BA8EFC #FC8E99 #D0FC8E #8EFCF1
split-complementary
#BA8EFC #FCF18E #99FC8E
monochromatic
#7117F9 #9652FA #BA8EFC #DECAFE #EDE1FE

Accessibility & contrast

On white

2.51
#BA8EFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#BA8EFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EFC
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EFC#FFFFFF#000000##000000
##BA8EFC1.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA3FF
Deuteranopia (green-blind)
#79A3F9
Tritanopia (blue-blind)
#AEA1B9
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba8efc;
/* rgb */ color: rgb(186, 142, 252);
/* oklch */ color: oklch(73.2% 0.160 301.0);
Tailwind
colors: {
  custom: {
    50: '#d1b0fe',
    500: '#ba8efc',
    950: '#000000',
  },
}
SCSS
$custom: #ba8efc;
$custom-light: #d1b0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8efc",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 252
  },
  "hsl": {
    "h": 264,
    "s": 94.828,
    "l": 77.255
  },
  "oklch": {
    "l": 0.73225,
    "c": 0.1596,
    "h": 301
  },
  "luminance": 0.36813
}

Semantic roles & 50–950 ramp

primary
#BA8EFC
secondary
#E9F6D5
accent
#E6008A
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA8EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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