#BA8FFC#BA8FFC

#BA8FFC is a light, vivid violet. Relative luminance 0.371; OKLCH L 73.4% C 0.158 H 300.8°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#BA8FFC
RGBrgb(186, 143, 252)
HSLhsl(264, 95%, 77%)
HSVhsv(264, 43%, 99%)
CMYKcmyk(26.2%, 43.3%, 0%, 1.2%)
CIE-LABlab(67.36, 37.86, -48.54)
CIE-LCHlch(67.36, 61.56, 307.95°)
OKLaboklab(73.39% 0.0809 -0.1358)
OKLCHoklch(73.39% 0.158 300.8)
XYZxyz(47.6389, 37.1121, 96.7302)
Luminance0.3711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8FFC #D1FC8F
analogous
#8F9AFC #BA8FFC #F18FFC
triadic
#BA8FFC #FCBA8F #8FFCBA
tetradic
#BA8FFC #FC8F9A #D1FC8F #8FFCF1
square
#BA8FFC #FC8F9A #D1FC8F #8FFCF1
split-complementary
#BA8FFC #FCF18F #9AFC8F
monochromatic
#7118F9 #9553FA #BA8FFC #DFCBFE #EDE1FE

Accessibility & contrast

On white

2.49
#BA8FFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#BA8FFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8FFC
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8FFC#FFFFFF#000000##000000
##BA8FFC1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A4FF
Deuteranopia (green-blind)
#7AA3F9
Tritanopia (blue-blind)
#AEA2B9
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ba8ffc;
/* rgb */ color: rgb(186, 143, 252);
/* oklch */ color: oklch(73.4% 0.158 300.8);
Tailwind
colors: {
  custom: {
    50: '#d1b0fe',
    500: '#ba8ffc',
    950: '#000000',
  },
}
SCSS
$custom: #ba8ffc;
$custom-light: #d1b0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8ffc",
  "rgb": {
    "r": 186,
    "g": 143,
    "b": 252
  },
  "hsl": {
    "h": 263.67,
    "s": 94.783,
    "l": 77.451
  },
  "oklch": {
    "l": 0.73394,
    "c": 0.15802,
    "h": 300.8
  },
  "luminance": 0.37112
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8FFC

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

Preview Lab → · Contrast checker → · Palette generator →

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