#BA7EFF#BA7EFF

#BA7EFF is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.8% C 0.188 H 303.4°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#BA7EFF
RGBrgb(186, 126, 255)
HSLhsl(268, 100%, 75%)
HSVhsv(268, 51%, 100%)
CMYKcmyk(27.1%, 50.6%, 0%, 0%)
CIE-LABlab(63.82, 47.82, -55.79)
CIE-LCHlch(63.82, 73.48, 310.60°)
OKLaboklab(70.8% 0.1035 -0.1569)
OKLCHoklch(70.8% 0.188 303.4)
XYZxyz(45.7566, 32.5809, 98.4665)
Luminance0.3258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EFF #C3FF7E
analogous
#7E83FF #BA7EFF #FB7EFF
triadic
#BA7EFF #FFBA7E #7EFFBA
tetradic
#BA7EFF #FF7E83 #C3FF7E #7EFFFB
square
#BA7EFF #FF7E83 #C3FF7E #7EFFFB
split-complementary
#BA7EFF #FFFB7E #83FF7E
monochromatic
#7904FF #9941FF #BA7EFF #DBBBFF #EFE0FF

Accessibility & contrast

On white

2.79
#BA7EFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#BA7EFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EFF
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EFF#FFFFFF#000000##000000
##BA7EFF1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5499FF
Deuteranopia (green-blind)
#669AFC
Tritanopia (blue-blind)
#AE96B3
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba7eff;
/* rgb */ color: rgb(186, 126, 255);
/* oklch */ color: oklch(70.8% 0.188 303.4);
Tailwind
colors: {
  custom: {
    50: '#d2a5ff',
    500: '#ba7eff',
    950: '#000000',
  },
}
SCSS
$custom: #ba7eff;
$custom-light: #d2a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7eff",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 255
  },
  "hsl": {
    "h": 267.907,
    "s": 100,
    "l": 74.706
  },
  "oklch": {
    "l": 0.70796,
    "c": 0.18795,
    "h": 303.4
  },
  "luminance": 0.32581
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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