#BA8DFE#BA8DFE

#BA8DFE is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.2% C 0.164 H 300.8°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#BA8DFE
RGBrgb(186, 141, 254)
HSLhsl(264, 98%, 77%)
HSVhsv(264, 44%, 100%)
CMYKcmyk(26.8%, 44.5%, 0%, 0.4%)
CIE-LABlab(67.01, 39.43, -50.18)
CIE-LCHlch(67.01, 63.82, 308.16°)
OKLaboklab(73.16% 0.0838 -0.1405)
OKLCHoklch(73.16% 0.164 300.8)
XYZxyz(47.6599, 36.6444, 98.3089)
Luminance0.3664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8DFE #D1FE8D
analogous
#8D98FE #BA8DFE #F38DFE
triadic
#BA8DFE #FEBA8D #8DFEBA
tetradic
#BA8DFE #FE8D98 #D1FE8D #8DFEF3
square
#BA8DFE #FE8D98 #D1FE8D #8DFEF3
split-complementary
#BA8DFE #FEF38D #98FE8D
monochromatic
#7114FD #9550FD #BA8DFE #DFCAFF #EDE1FF

Accessibility & contrast

On white

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

On black

8.33
#BA8DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8DFE
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8DFE#FFFFFF#000000##000000
##BA8DFE1.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA3FF
Deuteranopia (green-blind)
#77A2FB
Tritanopia (blue-blind)
#ADA1B9
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba8dfe;
/* rgb */ color: rgb(186, 141, 254);
/* oklch */ color: oklch(73.2% 0.164 300.8);
Tailwind
colors: {
  custom: {
    50: '#d1afff',
    500: '#ba8dfe',
    950: '#000000',
  },
}
SCSS
$custom: #ba8dfe;
$custom-light: #d1afff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8dfe",
  "rgb": {
    "r": 186,
    "g": 141,
    "b": 254
  },
  "hsl": {
    "h": 263.894,
    "s": 98.261,
    "l": 77.451
  },
  "oklch": {
    "l": 0.73161,
    "c": 0.16365,
    "h": 300.8
  },
  "luminance": 0.36645
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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