#BA8DFD#BA8DFD

#BA8DFD is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.1% C 0.162 H 301.0°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#BA8DFD
RGBrgb(186, 141, 253)
HSLhsl(264, 97%, 77%)
HSVhsv(264, 44%, 99%)
CMYKcmyk(26.5%, 44.3%, 0%, 0.8%)
CIE-LABlab(66.96, 39.19, -49.71)
CIE-LCHlch(66.96, 63.31, 308.25°)
OKLaboklab(73.11% 0.0837 -0.1392)
OKLCHoklch(73.11% 0.162 301)
XYZxyz(47.5002, 36.5806, 97.4678)
Luminance0.3658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8DFD #D0FD8D
analogous
#8D98FD #BA8DFD #F28DFD
triadic
#BA8DFD #FDBA8D #8DFDBA
tetradic
#BA8DFD #FD8D98 #D0FD8D #8DFDF2
square
#BA8DFD #FD8D98 #D0FD8D #8DFDF2
split-complementary
#BA8DFD #FDF28D #98FD8D
monochromatic
#7115FB #9651FC #BA8DFD #DEC9FE #EDE1FE

Accessibility & contrast

On white

2.53
#BA8DFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#BA8DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8DFD
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8DFD#FFFFFF#000000##000000
##BA8DFD1.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba8dfd;
/* rgb */ color: rgb(186, 141, 253);
/* oklch */ color: oklch(73.1% 0.162 301.0);
Tailwind
colors: {
  custom: {
    50: '#d1affe',
    500: '#ba8dfd',
    950: '#000000',
  },
}
SCSS
$custom: #ba8dfd;
$custom-light: #d1affe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8dfd",
  "rgb": {
    "r": 186,
    "g": 141,
    "b": 253
  },
  "hsl": {
    "h": 264.107,
    "s": 96.552,
    "l": 77.255
  },
  "oklch": {
    "l": 0.73109,
    "c": 0.16241,
    "h": 301
  },
  "luminance": 0.36581
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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