#BA7CF8#BA7CF8

#BA7CF8 is a light, vivid violet. Relative luminance 0.316; OKLCH L 70.1% C 0.183 H 305.3°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#BA7CF8
RGBrgb(186, 124, 248)
HSLhsl(270, 90%, 73%)
HSVhsv(270, 50%, 97%)
CMYKcmyk(25%, 50%, 0%, 2.7%)
CIE-LABlab(63.04, 47.27, -53.19)
CIE-LCHlch(63.04, 71.16, 311.63°)
OKLaboklab(70.1% 0.1055 -0.1493)
OKLCHoklch(70.1% 0.183 305.3)
XYZxyz(44.3970, 31.6320, 92.5554)
Luminance0.3163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CF8 #BAF87C
analogous
#7C7CF8 #BA7CF8 #F87CF8
triadic
#BA7CF8 #F8BA7C #7CF8BA
tetradic
#BA7CF8 #F87C7C #BAF87C #7CF8F8
square
#BA7CF8 #F87C7C #BAF87C #7CF8F8
split-complementary
#BA7CF8 #F8F87C #7CF87C
monochromatic
#7D0DED #9B42F5 #BA7CF8 #D9B6FB #F0E2FD

Accessibility & contrast

On white

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

On black

7.33
#BA7CF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CF8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CF8#FFFFFF#000000##000000
##BA7CF81.002.877.337.33
#FFFFFF2.871.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5797FC
Deuteranopia (green-blind)
#6899F5
Tritanopia (blue-blind)
#B092AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7cf8;
/* rgb */ color: rgb(186, 124, 248);
/* oklch */ color: oklch(70.1% 0.183 305.3);
Tailwind
colors: {
  custom: {
    50: '#d1a3fb',
    500: '#ba7cf8',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cf8;
$custom-light: #d1a3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cf8",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 248
  },
  "hsl": {
    "h": 270,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.70097,
    "c": 0.1828,
    "h": 305.3
  },
  "luminance": 0.31632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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