#BA7CF3#BA7CF3

#BA7CF3 is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.8% C 0.177 H 306.4°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#BA7CF3
RGBrgb(186, 124, 243)
HSLhsl(271, 83%, 72%)
HSVhsv(271, 49%, 95%)
CMYKcmyk(23.5%, 49%, 0%, 4.7%)
CIE-LABlab(62.78, 46.13, -50.84)
CIE-LCHlch(62.78, 68.65, 312.22°)
OKLaboklab(69.82% 0.1051 -0.1424)
OKLCHoklch(69.82% 0.177 306.4)
XYZxyz(43.6317, 31.3258, 88.5246)
Luminance0.3132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CF3 #B5F37C
analogous
#7F7CF3 #BA7CF3 #F37CF0
triadic
#BA7CF3 #F3BA7C #7CF3BA
tetradic
#BA7CF3 #F37F7C #B5F37C #7CF0F3
square
#BA7CF3 #F37F7C #B5F37C #7CF0F3
split-complementary
#BA7CF3 #F0F37C #7CF37F
monochromatic
#7F15E0 #9C44EE #BA7CF3 #D8B4F8 #F0E3FC

Accessibility & contrast

On white

2.89
#BA7CF3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#BA7CF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CF3
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CF3#FFFFFF#000000##000000
##BA7CF31.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A96F7
Deuteranopia (green-blind)
#6C98F0
Tritanopia (blue-blind)
#B191AC
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7cf3;
/* rgb */ color: rgb(186, 124, 243);
/* oklch */ color: oklch(69.8% 0.177 306.4);
Tailwind
colors: {
  custom: {
    50: '#d1a3f7',
    500: '#ba7cf3',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cf3;
$custom-light: #d1a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cf3",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 243
  },
  "hsl": {
    "h": 271.261,
    "s": 83.217,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69824,
    "c": 0.17697,
    "h": 306.4
  },
  "luminance": 0.31325
}

Semantic roles & 50–950 ramp

primary
#BA7CF3
secondary
#E5F4D6
accent
#E0066E
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7CF3

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

Preview Lab → · Contrast checker → · Palette generator →

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