#BA7CF4#BA7CF4

#BA7CF4 is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.9% C 0.178 H 306.2°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#BA7CF4
RGBrgb(186, 124, 244)
HSLhsl(271, 85%, 72%)
HSVhsv(271, 49%, 96%)
CMYKcmyk(23.8%, 49.2%, 0%, 4.3%)
CIE-LABlab(62.83, 46.36, -51.31)
CIE-LCHlch(62.83, 69.15, 312.10°)
OKLaboklab(69.88% 0.1052 -0.1438)
OKLCHoklch(69.88% 0.178 306.2)
XYZxyz(43.7831, 31.3864, 89.3220)
Luminance0.3139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CF4 #B6F47C
analogous
#7E7CF4 #BA7CF4 #F47CF2
triadic
#BA7CF4 #F4BA7C #7CF4BA
tetradic
#BA7CF4 #F47E7C #B6F47C #7CF2F4
square
#BA7CF4 #F47E7C #B6F47C #7CF2F4
split-complementary
#BA7CF4 #F2F47C #7CF47E
monochromatic
#7E13E3 #9C44EF #BA7CF4 #D8B4F9 #F0E3FD

Accessibility & contrast

On white

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

On black

7.28
#BA7CF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CF4
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CF4#FFFFFF#000000##000000
##BA7CF41.002.897.287.28
#FFFFFF2.891.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A96F8
Deuteranopia (green-blind)
#6B98F1
Tritanopia (blue-blind)
#B191AD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7cf4;
/* rgb */ color: rgb(186, 124, 244);
/* oklch */ color: oklch(69.9% 0.178 306.2);
Tailwind
colors: {
  custom: {
    50: '#d1a3f8',
    500: '#ba7cf4',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cf4;
$custom-light: #d1a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cf4",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 244
  },
  "hsl": {
    "h": 271,
    "s": 84.507,
    "l": 72.157
  },
  "oklch": {
    "l": 0.69878,
    "c": 0.17813,
    "h": 306.2
  },
  "luminance": 0.31386
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7CF4

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

Preview Lab → · Contrast checker → · Palette generator →

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