#BA7EFE#BA7EFE

#BA7EFE is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.7% C 0.187 H 303.6°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#BA7EFE
RGBrgb(186, 126, 254)
HSLhsl(268, 98%, 75%)
HSVhsv(268, 50%, 100%)
CMYKcmyk(26.8%, 50.4%, 0%, 0.4%)
CIE-LABlab(63.77, 47.58, -55.32)
CIE-LCHlch(63.77, 72.97, 310.70°)
OKLaboklab(70.74% 0.1035 -0.1555)
OKLCHoklch(70.74% 0.187 303.6)
XYZxyz(45.5960, 32.5167, 97.6210)
Luminance0.3252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EFE #C2FE7E
analogous
#7E82FE #BA7EFE #FA7EFE
triadic
#BA7EFE #FEBA7E #7EFEBA
tetradic
#BA7EFE #FE7E82 #C2FE7E #7EFEFA
square
#BA7EFE #FE7E82 #C2FE7E #7EFEFA
split-complementary
#BA7EFE #FEFA7E #82FE7E
monochromatic
#7905FD #9A41FE #BA7EFE #DABBFE #EFE1FF

Accessibility & contrast

On white

2.80
#BA7EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#BA7EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EFE
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EFE#FFFFFF#000000##000000
##BA7EFE1.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5599FF
Deuteranopia (green-blind)
#669AFB
Tritanopia (blue-blind)
#AE95B2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7efe;
/* rgb */ color: rgb(186, 126, 254);
/* oklch */ color: oklch(70.7% 0.187 303.6);
Tailwind
colors: {
  custom: {
    50: '#d2a5ff',
    500: '#ba7efe',
    950: '#000000',
  },
}
SCSS
$custom: #ba7efe;
$custom-light: #d2a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7efe",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 268.125,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.7074,
    "c": 0.18677,
    "h": 303.6
  },
  "luminance": 0.32517
}

Semantic roles & 50–950 ramp

primary
#BA7EFE
secondary
#E7F7D4
accent
#E6007A
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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