#BA7DFF#BA7DFF

#BA7DFF is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.6% C 0.189 H 303.6°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#BA7DFF
RGBrgb(186, 125, 255)
HSLhsl(268, 100%, 75%)
HSVhsv(268, 51%, 100%)
CMYKcmyk(27.1%, 51%, 0%, 0%)
CIE-LABlab(63.61, 48.35, -56.12)
CIE-LCHlch(63.61, 74.08, 310.75°)
OKLaboklab(70.64% 0.1048 -0.1578)
OKLCHoklch(70.64% 0.189 303.6)
XYZxyz(45.6293, 32.3264, 98.4241)
Luminance0.3233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DFF #C2FF7D
analogous
#7D81FF #BA7DFF #FB7DFF
triadic
#BA7DFF #FFBA7D #7DFFBA
tetradic
#BA7DFF #FF7D81 #C2FF7D #7DFFFB
square
#BA7DFF #FF7D81 #C2FF7D #7DFFFB
split-complementary
#BA7DFF #FFFB7D #81FF7D
monochromatic
#7903FF #9A40FF #BA7DFF #DABAFF #EFE0FF

Accessibility & contrast

On white

2.81
#BA7DFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#BA7DFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DFF
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DFF#FFFFFF#000000##000000
##BA7DFF1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5399FF
Deuteranopia (green-blind)
#659AFC
Tritanopia (blue-blind)
#AE95B3
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7dff;
/* rgb */ color: rgb(186, 125, 255);
/* oklch */ color: oklch(70.6% 0.189 303.6);
Tailwind
colors: {
  custom: {
    50: '#d2a4ff',
    500: '#ba7dff',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dff;
$custom-light: #d2a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dff",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 255
  },
  "hsl": {
    "h": 268.154,
    "s": 100,
    "l": 74.51
  },
  "oklch": {
    "l": 0.70642,
    "c": 0.18947,
    "h": 303.6
  },
  "luminance": 0.32326
}

Semantic roles & 50–950 ramp

primary
#BA7DFF
secondary
#E7F7D4
accent
#E6007A
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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