#BA7AEA#BA7AEA

#BA7AEA is a light, vivid violet. Relative luminance 0.303; OKLCH L 69.0% C 0.170 H 309.0°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#BA7AEA
RGBrgb(186, 122, 234)
HSLhsl(274, 73%, 70%)
HSVhsv(274, 48%, 92%)
CMYKcmyk(20.5%, 47.9%, 0%, 8.2%)
CIE-LABlab(61.91, 45.19, -47.23)
CIE-LCHlch(61.91, 65.36, 313.73°)
OKLaboklab(69.03% 0.1067 -0.1319)
OKLCHoklch(69.03% 0.17 309)
XYZxyz(42.0577, 30.2993, 81.4587)
Luminance0.3030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AEA #AAEA7A
analogous
#827AEA #BA7AEA #EA7AE2
triadic
#BA7AEA #EABA7A #7AEABA
tetradic
#BA7AEA #EA827A #AAEA7A #7AE2EA
square
#BA7AEA #EA827A #AAEA7A #7AE2EA
split-complementary
#BA7AEA #E2EA7A #7AEA82
monochromatic
#8120CA #9F45E2 #BA7AEA #D5AFF2 #F1E4FB

Accessibility & contrast

On white

2.97
#BA7AEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#BA7AEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AEA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AEA#FFFFFF#000000##000000
##BA7AEA1.002.977.067.06
#FFFFFF2.971.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E93EE
Deuteranopia (green-blind)
#6F97E7
Tritanopia (blue-blind)
#B48CA7
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7aea;
/* rgb */ color: rgb(186, 122, 234);
/* oklch */ color: oklch(69.0% 0.170 309.0);
Tailwind
colors: {
  custom: {
    50: '#d1a2f1',
    500: '#ba7aea',
    950: '#000000',
  },
}
SCSS
$custom: #ba7aea;
$custom-light: #d1a2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7aea",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 234
  },
  "hsl": {
    "h": 274.286,
    "s": 72.727,
    "l": 69.804
  },
  "oklch": {
    "l": 0.6903,
    "c": 0.16968,
    "h": 309
  },
  "luminance": 0.30299
}

Semantic roles & 50–950 ramp

primary
#BA7AEA
secondary
#DEF0D0
accent
#D51165
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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