#BA7DFE#BA7DFE

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

Color values

HEX#BA7DFE
RGBrgb(186, 125, 254)
HSLhsl(268, 98%, 74%)
HSVhsv(268, 51%, 100%)
CMYKcmyk(26.8%, 50.8%, 0%, 0.4%)
CIE-LABlab(63.56, 48.12, -55.65)
CIE-LCHlch(63.56, 73.57, 310.85°)
OKLaboklab(70.58% 0.1048 -0.1565)
OKLCHoklch(70.58% 0.188 303.8)
XYZxyz(45.4688, 32.2622, 97.5785)
Luminance0.3226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DFE #C1FE7D
analogous
#7D81FE #BA7DFE #FA7DFE
triadic
#BA7DFE #FEBA7D #7DFEBA
tetradic
#BA7DFE #FE7D81 #C1FE7D #7DFEFA
square
#BA7DFE #FE7D81 #C1FE7D #7DFEFA
split-complementary
#BA7DFE #FEFA7D #81FE7D
monochromatic
#7A04FD #9A40FE #BA7DFE #DABAFE #EFE1FF

Accessibility & contrast

On white

2.82
#BA7DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#BA7DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DFE
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DFE#FFFFFF#000000##000000
##BA7DFE1.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5498FF
Deuteranopia (green-blind)
#659AFB
Tritanopia (blue-blind)
#AE95B2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7dfe;
/* rgb */ color: rgb(186, 125, 254);
/* oklch */ color: oklch(70.6% 0.188 303.8);
Tailwind
colors: {
  custom: {
    50: '#d2a4ff',
    500: '#ba7dfe',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dfe;
$custom-light: #d2a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dfe",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 268.372,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70585,
    "c": 0.1883,
    "h": 303.8
  },
  "luminance": 0.32262
}

Semantic roles & 50–950 ramp

primary
#BA7DFE
secondary
#E6F7D4
accent
#E60079
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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