#BA7AED#BA7AED

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

Color values

HEX#BA7AED
RGBrgb(186, 122, 237)
HSLhsl(273, 76%, 70%)
HSVhsv(273, 49%, 93%)
CMYKcmyk(21.5%, 48.5%, 0%, 7.1%)
CIE-LABlab(62.06, 45.85, -48.66)
CIE-LCHlch(62.06, 66.86, 313.30°)
OKLaboklab(69.19% 0.1071 -0.1361)
OKLCHoklch(69.19% 0.173 308.2)
XYZxyz(42.4923, 30.4731, 83.7477)
Luminance0.3047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AED #ADED7A
analogous
#807AED #BA7AED #ED7AE7
triadic
#BA7AED #EDBA7A #7AEDBA
tetradic
#BA7AED #ED807A #ADED7A #7AE7ED
square
#BA7AED #ED807A #ADED7A #7AE7ED
split-complementary
#BA7AED #E7ED7A #7AED80
monochromatic
#801CD0 #9E44E6 #BA7AED #D6B0F4 #F1E4FB

Accessibility & contrast

On white

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

On black

7.09
#BA7AED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AED
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AED#FFFFFF#000000##000000
##BA7AED1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C93F1
Deuteranopia (green-blind)
#6E97EA
Tritanopia (blue-blind)
#B38DA9
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7aed;
/* rgb */ color: rgb(186, 122, 237);
/* oklch */ color: oklch(69.2% 0.173 308.2);
Tailwind
colors: {
  custom: {
    50: '#d1a2f3',
    500: '#ba7aed',
    950: '#000000',
  },
}
SCSS
$custom: #ba7aed;
$custom-light: #d1a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7aed",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 237
  },
  "hsl": {
    "h": 273.391,
    "s": 76.159,
    "l": 70.392
  },
  "oklch": {
    "l": 0.69189,
    "c": 0.17314,
    "h": 308.2
  },
  "luminance": 0.30473
}

Semantic roles & 50–950 ramp

primary
#BA7AED
secondary
#E0F1D2
accent
#D80D67
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7AED

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

Preview Lab → · Contrast checker → · Palette generator →

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