#BA7CF6#BA7CF6

#BA7CF6 is a light, vivid violet. Relative luminance 0.315; OKLCH L 70.0% C 0.180 H 305.7°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#BA7CF6
RGBrgb(186, 124, 246)
HSLhsl(270, 87%, 73%)
HSVhsv(270, 50%, 96%)
CMYKcmyk(24.4%, 49.6%, 0%, 3.5%)
CIE-LABlab(62.93, 46.81, -52.25)
CIE-LCHlch(62.93, 70.15, 311.86°)
OKLaboklab(69.99% 0.1054 -0.1465)
OKLCHoklch(69.99% 0.18 305.7)
XYZxyz(44.0884, 31.5085, 90.9300)
Luminance0.3151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CF6 #B8F67C
analogous
#7D7CF6 #BA7CF6 #F67CF5
triadic
#BA7CF6 #F6BA7C #7CF6BA
tetradic
#BA7CF6 #F67D7C #B8F67C #7CF5F6
square
#BA7CF6 #F67D7C #B8F67C #7CF5F6
split-complementary
#BA7CF6 #F5F67C #7CF67D
monochromatic
#7E10E8 #9C43F2 #BA7CF6 #D8B5FA #F0E2FD

Accessibility & contrast

On white

2.88
#BA7CF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#BA7CF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CF6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CF6#FFFFFF#000000##000000
##BA7CF61.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5896FA
Deuteranopia (green-blind)
#6A99F3
Tritanopia (blue-blind)
#B091AE
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7cf6;
/* rgb */ color: rgb(186, 124, 246);
/* oklch */ color: oklch(70.0% 0.180 305.7);
Tailwind
colors: {
  custom: {
    50: '#d1a3fa',
    500: '#ba7cf6',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cf6;
$custom-light: #d1a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cf6",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 246
  },
  "hsl": {
    "h": 270.492,
    "s": 87.143,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69987,
    "c": 0.18046,
    "h": 305.7
  },
  "luminance": 0.31508
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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