#BA8CEE#BA8CEE

#BA8CEE is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.2% C 0.145 H 304.6°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#BA8CEE
RGBrgb(186, 140, 238)
HSLhsl(268, 74%, 74%)
HSVhsv(268, 41%, 93%)
CMYKcmyk(21.8%, 41.2%, 0%, 6.7%)
CIE-LABlab(66.03, 36.27, -42.95)
CIE-LCHlch(66.03, 56.21, 310.18°)
OKLaboklab(72.18% 0.0826 -0.1196)
OKLCHoklch(72.18% 0.145 304.6)
XYZxyz(45.0572, 35.3685, 85.3255)
Luminance0.3537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CEE #C0EE8C
analogous
#8C8FEE #BA8CEE #EB8CEE
triadic
#BA8CEE #EEBA8C #8CEEBA
tetradic
#BA8CEE #EE8C8F #C0EE8C #8CEEEB
square
#BA8CEE #EE8C8F #C0EE8C #8CEEEB
split-complementary
#BA8CEE #EEEB8C #8FEE8C
monochromatic
#7A21DE #9A57E6 #BA8CEE #DAC1F6 #EFE4FB

Accessibility & contrast

On white

2.60
#BA8CEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#BA8CEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8CEE
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8CEE#FFFFFF#000000##000000
##BA8CEE1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#749FF2
Deuteranopia (green-blind)
#7FA1EB
Tritanopia (blue-blind)
#B29CB2
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba8cee;
/* rgb */ color: rgb(186, 140, 238);
/* oklch */ color: oklch(72.2% 0.145 304.6);
Tailwind
colors: {
  custom: {
    50: '#d0aef4',
    500: '#ba8cee',
    950: '#000000',
  },
}
SCSS
$custom: #ba8cee;
$custom-light: #d0aef4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8cee",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 238
  },
  "hsl": {
    "h": 268.163,
    "s": 74.242,
    "l": 74.118
  },
  "oklch": {
    "l": 0.72182,
    "c": 0.14534,
    "h": 304.6
  },
  "luminance": 0.35368
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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