#BA7CF7#BA7CF7

#BA7CF7 is a light, vivid violet. Relative luminance 0.316; OKLCH L 70.0% C 0.182 H 305.5°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#BA7CF7
RGBrgb(186, 124, 247)
HSLhsl(270, 88%, 73%)
HSVhsv(270, 50%, 97%)
CMYKcmyk(24.7%, 49.8%, 0%, 3.1%)
CIE-LABlab(62.99, 47.04, -52.72)
CIE-LCHlch(62.99, 70.65, 311.74°)
OKLaboklab(70.04% 0.1055 -0.1479)
OKLCHoklch(70.04% 0.182 305.5)
XYZxyz(44.2423, 31.5701, 91.7405)
Luminance0.3157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CF7 #B9F77C
analogous
#7C7CF7 #BA7CF7 #F77CF6
triadic
#BA7CF7 #F7BA7C #7CF7BA
tetradic
#BA7CF7 #F77C7C #B9F77C #7CF6F7
square
#BA7CF7 #F77C7C #B9F77C #7CF6F7
split-complementary
#BA7CF7 #F6F77C #7CF77C
monochromatic
#7D0EEA #9C42F3 #BA7CF7 #D8B6FB #F0E2FD

Accessibility & contrast

On white

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

On black

7.31
#BA7CF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CF7
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CF7#FFFFFF#000000##000000
##BA7CF71.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5796FB
Deuteranopia (green-blind)
#6999F4
Tritanopia (blue-blind)
#B092AE
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7cf7;
/* rgb */ color: rgb(186, 124, 247);
/* oklch */ color: oklch(70.0% 0.182 305.5);
Tailwind
colors: {
  custom: {
    50: '#d1a3fa',
    500: '#ba7cf7',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cf7;
$custom-light: #d1a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cf7",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 247
  },
  "hsl": {
    "h": 270.244,
    "s": 88.489,
    "l": 72.745
  },
  "oklch": {
    "l": 0.70042,
    "c": 0.18163,
    "h": 305.5
  },
  "luminance": 0.3157
}

Semantic roles & 50–950 ramp

primary
#BA7CF7
secondary
#E5F5D6
accent
#E50072
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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