#BA8EDA#BA8EDA

#BA8EDA is a light, moderate violet. Relative luminance 0.348; OKLCH L 71.6% C 0.117 H 310.2°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#BA8EDA
RGBrgb(186, 142, 218)
HSLhsl(275, 51%, 71%)
HSVhsv(275, 35%, 85%)
CMYKcmyk(14.7%, 34.9%, 0%, 14.5%)
CIE-LABlab(65.63, 30.72, -32.53)
CIE-LCHlch(65.63, 44.74, 313.36°)
OKLaboklab(71.59% 0.0756 -0.0896)
OKLCHoklch(71.59% 0.117 310.2)
XYZxyz(42.5753, 34.8476, 70.7995)
Luminance0.3485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EDA #AEDA8E
analogous
#948EDA #BA8EDA #DA8ED4
triadic
#BA8EDA #DABA8E #8EDABA
tetradic
#BA8EDA #DA948E #AEDA8E #8ED4DA
square
#BA8EDA #DA948E #AEDA8E #8ED4DA
split-complementary
#BA8EDA #D4DA8E #8EDA94
monochromatic
#803BB3 #9E60CB #BA8EDA #D6BCE9 #F1E8F7

Accessibility & contrast

On white

2.64
#BA8EDA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#BA8EDA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EDA
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EDA#FFFFFF#000000##000000
##BA8EDA1.002.647.977.97
#FFFFFF2.641.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#809DDD
Deuteranopia (green-blind)
#8AA0D8
Tritanopia (blue-blind)
#B699AA
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba8eda;
/* rgb */ color: rgb(186, 142, 218);
/* oklch */ color: oklch(71.6% 0.117 310.2);
Tailwind
colors: {
  custom: {
    50: '#cfafe5',
    500: '#ba8eda',
    950: '#000000',
  },
}
SCSS
$custom: #ba8eda;
$custom-light: #cfafe5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8eda",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 218
  },
  "hsl": {
    "h": 274.737,
    "s": 50.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71592,
    "c": 0.11726,
    "h": 310.2
  },
  "luminance": 0.34847
}

Semantic roles & 50–950 ramp

primary
#BA8EDA
secondary
#E0ECD8
accent
#BE2767
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BA8EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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