#BA8DFA#BA8DFA

#BA8DFA is a light, vivid violet. Relative luminance 0.364; OKLCH L 73.0% C 0.159 H 301.6°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#BA8DFA
RGBrgb(186, 141, 250)
HSLhsl(265, 92%, 77%)
HSVhsv(265, 44%, 98%)
CMYKcmyk(25.6%, 43.6%, 0%, 2%)
CIE-LABlab(66.82, 38.49, -48.30)
CIE-LCHlch(66.82, 61.76, 308.55°)
OKLaboklab(72.95% 0.0832 -0.1351)
OKLCHoklch(72.95% 0.159 301.6)
XYZxyz(47.0261, 36.3909, 94.9706)
Luminance0.3639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8DFA #CDFA8D
analogous
#8D97FA #BA8DFA #F18DFA
triadic
#BA8DFA #FABA8D #8DFABA
tetradic
#BA8DFA #FA8D97 #CDFA8D #8DFAF1
square
#BA8DFA #FA8D97 #CDFA8D #8DFAF1
split-complementary
#BA8DFA #FAF18D #97FA8D
monochromatic
#7318F5 #9752F7 #BA8DFA #DDC8FD #EDE2FE

Accessibility & contrast

On white

2.54
#BA8DFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#BA8DFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8DFA
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8DFA#FFFFFF#000000##000000
##BA8DFA1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA2FE
Deuteranopia (green-blind)
#79A2F7
Tritanopia (blue-blind)
#AEA0B8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba8dfa;
/* rgb */ color: rgb(186, 141, 250);
/* oklch */ color: oklch(73.0% 0.159 301.6);
Tailwind
colors: {
  custom: {
    50: '#d1affc',
    500: '#ba8dfa',
    950: '#000000',
  },
}
SCSS
$custom: #ba8dfa;
$custom-light: #d1affc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8dfa",
  "rgb": {
    "r": 186,
    "g": 141,
    "b": 250
  },
  "hsl": {
    "h": 264.771,
    "s": 91.597,
    "l": 76.667
  },
  "oklch": {
    "l": 0.72954,
    "c": 0.15867,
    "h": 301.6
  },
  "luminance": 0.36391
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8DFA

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

Preview Lab → · Contrast checker → · Palette generator →

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