#BA7AEB#BA7AEB

#BA7AEB is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.1% C 0.171 H 308.7°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#BA7AEB
RGBrgb(186, 122, 235)
HSLhsl(274, 74%, 70%)
HSVhsv(274, 48%, 92%)
CMYKcmyk(20.9%, 48.1%, 0%, 7.8%)
CIE-LABlab(61.96, 45.41, -47.71)
CIE-LCHlch(61.96, 65.86, 313.59°)
OKLaboklab(69.08% 0.1069 -0.1333)
OKLCHoklch(69.08% 0.171 308.7)
XYZxyz(42.2017, 30.3569, 82.2174)
Luminance0.3036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AEB #ABEB7A
analogous
#817AEB #BA7AEB #EB7AE4
triadic
#BA7AEB #EBBA7A #7AEBBA
tetradic
#BA7AEB #EB817A #ABEB7A #7AE4EB
square
#BA7AEB #EB817A #ABEB7A #7AE4EB
split-complementary
#BA7AEB #E4EB7A #7AEB81
monochromatic
#811FCC #9E45E3 #BA7AEB #D6AFF3 #F1E4FB

Accessibility & contrast

On white

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

On black

7.07
#BA7AEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AEB
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AEB#FFFFFF#000000##000000
##BA7AEB1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D93EF
Deuteranopia (green-blind)
#6F97E8
Tritanopia (blue-blind)
#B38DA8
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7aeb;
/* rgb */ color: rgb(186, 122, 235);
/* oklch */ color: oklch(69.1% 0.171 308.7);
Tailwind
colors: {
  custom: {
    50: '#d1a2f2',
    500: '#ba7aeb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7aeb;
$custom-light: #d1a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7aeb",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 273.982,
    "s": 73.856,
    "l": 70
  },
  "oklch": {
    "l": 0.69083,
    "c": 0.17083,
    "h": 308.7
  },
  "luminance": 0.30356
}

Semantic roles & 50–950 ramp

primary
#BA7AEB
secondary
#DEF0D1
accent
#D61066
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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