#BA7FEB#BA7FEB

#BA7FEB is a light, vivid violet. Relative luminance 0.316; OKLCH L 69.9% C 0.163 H 307.9°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#BA7FEB
RGBrgb(186, 127, 235)
HSLhsl(273, 73%, 71%)
HSVhsv(273, 46%, 92%)
CMYKcmyk(20.9%, 46%, 0%, 7.8%)
CIE-LABlab(63.02, 42.71, -46.03)
CIE-LCHlch(63.02, 62.79, 312.86°)
OKLaboklab(69.88% 0.1001 -0.1284)
OKLCHoklch(69.88% 0.163 307.9)
XYZxyz(42.8315, 31.6165, 82.4274)
Luminance0.3162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FEB #B0EB7F
analogous
#847FEB #BA7FEB #EB7FE6
triadic
#BA7FEB #EBBA7F #7FEBBA
tetradic
#BA7FEB #EB847F #B0EB7F #7FE6EB
square
#BA7FEB #EB847F #B0EB7F #7FE6EB
split-complementary
#BA7FEB #E6EB7F #7FEB84
monochromatic
#8020CF #9D4AE3 #BA7FEB #D7B4F3 #F1E5FB

Accessibility & contrast

On white

2.87
#BA7FEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#BA7FEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FEB
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FEB#FFFFFF#000000##000000
##BA7FEB1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496EF
Deuteranopia (green-blind)
#7499E8
Tritanopia (blue-blind)
#B391AA
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7feb;
/* rgb */ color: rgb(186, 127, 235);
/* oklch */ color: oklch(69.9% 0.163 307.9);
Tailwind
colors: {
  custom: {
    50: '#d1a5f2',
    500: '#ba7feb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7feb;
$custom-light: #d1a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7feb",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 272.778,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.69876,
    "c": 0.16281,
    "h": 307.9
  },
  "luminance": 0.31616
}

Semantic roles & 50–950 ramp

primary
#BA7FEB
secondary
#E2F1D5
accent
#D5106A
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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