#BA7BFB#BA7BFB

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

Color values

HEX#BA7BFB
RGBrgb(186, 123, 251)
HSLhsl(270, 94%, 73%)
HSVhsv(270, 51%, 98%)
CMYKcmyk(25.9%, 51%, 0%, 1.6%)
CIE-LABlab(62.99, 48.49, -54.92)
CIE-LCHlch(62.99, 73.26, 311.44°)
OKLaboklab(70.11% 0.1071 -0.1543)
OKLCHoklch(70.11% 0.188 304.8)
XYZxyz(44.7415, 31.5703, 94.9847)
Luminance0.3157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BFB #BCFB7B
analogous
#7B7CFB #BA7BFB #FA7BFB
triadic
#BA7BFB #FBBA7B #7BFBBA
tetradic
#BA7BFB #FB7B7C #BCFB7B #7BFBFA
square
#BA7BFB #FB7B7C #BCFB7B #7BFBFA
split-complementary
#BA7BFB #FBFA7B #7CFB7B
monochromatic
#7C07F4 #9B40F9 #BA7BFB #D9B6FD #EFE1FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA7BFB#FFFFFF#000000##000000
##BA7BFB1.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)
#5397FF
Deuteranopia (green-blind)
#6599F8
Tritanopia (blue-blind)
#AF92B0
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7bfb;
/* rgb */ color: rgb(186, 123, 251);
/* oklch */ color: oklch(70.1% 0.188 304.8);
Tailwind
colors: {
  custom: {
    50: '#d2a3fd',
    500: '#ba7bfb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bfb;
$custom-light: #d2a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bfb",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 269.531,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.7011,
    "c": 0.18783,
    "h": 304.8
  },
  "luminance": 0.3157
}

Semantic roles & 50–950 ramp

primary
#BA7BFB
secondary
#E6F6D5
accent
#E60075
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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