#BA8DEB#BA8DEB

#BA8DEB is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.2% C 0.140 H 305.2°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#BA8DEB
RGBrgb(186, 141, 235)
HSLhsl(269, 70%, 74%)
HSVhsv(269, 40%, 92%)
CMYKcmyk(20.9%, 40%, 0%, 7.8%)
CIE-LABlab(66.13, 35.03, -41.16)
CIE-LCHlch(66.13, 54.05, 310.40°)
OKLaboklab(72.21% 0.0807 -0.1144)
OKLCHoklch(72.21% 0.14 305.2)
XYZxyz(44.7669, 35.4872, 83.0725)
Luminance0.3549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8DEB #BEEB8D
analogous
#8D8FEB #BA8DEB #E98DEB
triadic
#BA8DEB #EBBA8D #8DEBBA
tetradic
#BA8DEB #EB8D8F #BEEB8D #8DEBE9
square
#BA8DEB #EB8D8F #BEEB8D #8DEBE9
split-complementary
#BA8DEB #EBE98D #8FEB8D
monochromatic
#7B26D8 #9A59E2 #BA8DEB #DAC1F4 #EFE5FA

Accessibility & contrast

On white

2.59
#BA8DEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#BA8DEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8DEB
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8DEB#FFFFFF#000000##000000
##BA8DEB1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#779FEF
Deuteranopia (green-blind)
#81A1E8
Tritanopia (blue-blind)
#B29CB1
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba8deb;
/* rgb */ color: rgb(186, 141, 235);
/* oklch */ color: oklch(72.2% 0.140 305.2);
Tailwind
colors: {
  custom: {
    50: '#d0aff2',
    500: '#ba8deb',
    950: '#000000',
  },
}
SCSS
$custom: #ba8deb;
$custom-light: #d0aff2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8deb",
  "rgb": {
    "r": 186,
    "g": 141,
    "b": 235
  },
  "hsl": {
    "h": 268.723,
    "s": 70.149,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72207,
    "c": 0.13998,
    "h": 305.2
  },
  "luminance": 0.35487
}

Semantic roles & 50–950 ramp

primary
#BA8DEB
secondary
#E6F2D9
accent
#D21377
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA8DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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