#BA7AEE#BA7AEE

#BA7AEE is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.2% C 0.174 H 308.0°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#BA7AEE
RGBrgb(186, 122, 238)
HSLhsl(273, 77%, 71%)
HSVhsv(273, 49%, 93%)
CMYKcmyk(21.8%, 48.7%, 0%, 6.7%)
CIE-LABlab(62.11, 46.08, -49.13)
CIE-LCHlch(62.11, 67.36, 313.16°)
OKLaboklab(69.24% 0.1072 -0.1374)
OKLCHoklch(69.24% 0.174 308)
XYZxyz(42.6388, 30.5317, 84.5193)
Luminance0.3053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AEE #AEEE7A
analogous
#807AEE #BA7AEE #EE7AE8
triadic
#BA7AEE #EEBA7A #7AEEBA
tetradic
#BA7AEE #EE807A #AEEE7A #7AE8EE
square
#BA7AEE #EE807A #AEEE7A #7AE8EE
split-complementary
#BA7AEE #E8EE7A #7AEE80
monochromatic
#801BD3 #9E44E7 #BA7AEE #D6B0F5 #F1E4FC

Accessibility & contrast

On white

2.96
#BA7AEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#BA7AEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AEE
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AEE#FFFFFF#000000##000000
##BA7AEE1.002.967.117.11
#FFFFFF2.961.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B94F2
Deuteranopia (green-blind)
#6D97EB
Tritanopia (blue-blind)
#B38EA9
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7aee;
/* rgb */ color: rgb(186, 122, 238);
/* oklch */ color: oklch(69.2% 0.174 308.0);
Tailwind
colors: {
  custom: {
    50: '#d1a2f4',
    500: '#ba7aee',
    950: '#000000',
  },
}
SCSS
$custom: #ba7aee;
$custom-light: #d1a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7aee",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 238
  },
  "hsl": {
    "h": 273.103,
    "s": 77.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69243,
    "c": 0.1743,
    "h": 308
  },
  "luminance": 0.30531
}

Semantic roles & 50–950 ramp

primary
#BA7AEE
secondary
#E0F2D2
accent
#DA0C68
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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