#BA8BEE#BA8BEE

#BA8BEE is a light, vivid violet. Relative luminance 0.351; OKLCH L 72.0% C 0.147 H 304.9°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#BA8BEE
RGBrgb(186, 139, 238)
HSLhsl(268, 74%, 74%)
HSVhsv(268, 42%, 93%)
CMYKcmyk(21.8%, 41.6%, 0%, 6.7%)
CIE-LABlab(65.81, 36.82, -43.30)
CIE-LCHlch(65.81, 56.84, 310.37°)
OKLaboklab(72.01% 0.084 -0.1206)
OKLCHoklch(72.01% 0.147 304.9)
XYZxyz(44.9117, 35.0776, 85.2770)
Luminance0.3508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BEE #BFEE8B
analogous
#8B8EEE #BA8BEE #EC8BEE
triadic
#BA8BEE #EEBA8B #8BEEBA
tetradic
#BA8BEE #EE8B8E #BFEE8B #8BEEEC
square
#BA8BEE #EE8B8E #BFEE8B #8BEEEC
split-complementary
#BA8BEE #EEEC8B #8EEE8B
monochromatic
#7B21DE #9A56E6 #BA8BEE #DAC0F6 #EFE4FB

Accessibility & contrast

On white

2.62
#BA8BEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#BA8BEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8BEE
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8BEE#FFFFFF#000000##000000
##BA8BEE1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#739EF2
Deuteranopia (green-blind)
#7EA0EB
Tritanopia (blue-blind)
#B29BB1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba8bee;
/* rgb */ color: rgb(186, 139, 238);
/* oklch */ color: oklch(72.0% 0.147 304.9);
Tailwind
colors: {
  custom: {
    50: '#d0adf4',
    500: '#ba8bee',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bee;
$custom-light: #d0adf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bee",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 238
  },
  "hsl": {
    "h": 268.485,
    "s": 74.436,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72012,
    "c": 0.14696,
    "h": 304.9
  },
  "luminance": 0.35077
}

Semantic roles & 50–950 ramp

primary
#BA8BEE
secondary
#E6F3D8
accent
#D70F78
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA8BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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