#BA7EFD#BA7EFD

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

Color values

HEX#BA7EFD
RGBrgb(186, 126, 253)
HSLhsl(268, 97%, 74%)
HSVhsv(268, 50%, 99%)
CMYKcmyk(26.5%, 50.2%, 0%, 0.8%)
CIE-LABlab(63.72, 47.35, -54.86)
CIE-LCHlch(63.72, 72.47, 310.80°)
OKLaboklab(70.68% 0.1034 -0.1541)
OKLCHoklch(70.68% 0.186 303.8)
XYZxyz(45.4363, 32.4528, 96.7798)
Luminance0.3245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EFD #C1FD7E
analogous
#7E82FD #BA7EFD #F97EFD
triadic
#BA7EFD #FDBA7E #7EFDBA
tetradic
#BA7EFD #FD7E82 #C1FD7E #7EFDF9
square
#BA7EFD #FD7E82 #C1FD7E #7EFDF9
split-complementary
#BA7EFD #FDF97E #82FD7E
monochromatic
#7A05FB #9A42FC #BA7EFD #DABAFE #EFE1FF

Accessibility & contrast

On white

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

On black

7.49
#BA7EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EFD
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EFD#FFFFFF#000000##000000
##BA7EFD1.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5699FF
Deuteranopia (green-blind)
#679AFA
Tritanopia (blue-blind)
#AE95B2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7efd;
/* rgb */ color: rgb(186, 126, 253);
/* oklch */ color: oklch(70.7% 0.186 303.8);
Tailwind
colors: {
  custom: {
    50: '#d2a5fe',
    500: '#ba7efd',
    950: '#000000',
  },
}
SCSS
$custom: #ba7efd;
$custom-light: #d2a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7efd",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 268.346,
    "s": 96.947,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70684,
    "c": 0.1856,
    "h": 303.8
  },
  "luminance": 0.32453
}

Semantic roles & 50–950 ramp

primary
#BA7EFD
secondary
#E6F7D4
accent
#E60079
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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