#BA7EF8#BA7EF8

#BA7EF8 is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.4% C 0.180 H 304.9°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#BA7EF8
RGBrgb(186, 126, 248)
HSLhsl(270, 90%, 73%)
HSVhsv(270, 49%, 97%)
CMYKcmyk(25%, 49.2%, 0%, 2.7%)
CIE-LABlab(63.46, 46.20, -52.52)
CIE-LCHlch(63.46, 69.95, 311.34°)
OKLaboklab(70.41% 0.1029 -0.1473)
OKLCHoklch(70.41% 0.18 304.9)
XYZxyz(44.6502, 32.1384, 92.6398)
Luminance0.3214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EF8 #BCF87E
analogous
#7E7FF8 #BA7EF8 #F77EF8
triadic
#BA7EF8 #F8BA7E #7EF8BA
tetradic
#BA7EF8 #F87E7F #BCF87E #7EF8F7
square
#BA7EF8 #F87E7F #BCF87E #7EF8F7
split-complementary
#BA7EF8 #F8F77E #7FF87E
monochromatic
#7C0DEF #9B44F5 #BA7EF8 #D9B8FB #EFE2FD

Accessibility & contrast

On white

2.83
#BA7EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#BA7EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EF8
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EF8#FFFFFF#000000##000000
##BA7EF81.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A98FC
Deuteranopia (green-blind)
#6B9AF5
Tritanopia (blue-blind)
#B094B0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7ef8;
/* rgb */ color: rgb(186, 126, 248);
/* oklch */ color: oklch(70.4% 0.180 304.9);
Tailwind
colors: {
  custom: {
    50: '#d1a5fb',
    500: '#ba7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ef8;
$custom-light: #d1a5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ef8",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 269.508,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70409,
    "c": 0.17971,
    "h": 304.9
  },
  "luminance": 0.32138
}

Semantic roles & 50–950 ramp

primary
#BA7EF8
secondary
#E6F6D5
accent
#E60075
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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