#BA7DFD#BA7DFD

#BA7DFD is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.5% C 0.187 H 304.0°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#BA7DFD
RGBrgb(186, 125, 253)
HSLhsl(269, 97%, 74%)
HSVhsv(269, 51%, 99%)
CMYKcmyk(26.5%, 50.6%, 0%, 0.8%)
CIE-LABlab(63.51, 47.89, -55.19)
CIE-LCHlch(63.51, 73.07, 310.95°)
OKLaboklab(70.53% 0.1047 -0.1551)
OKLCHoklch(70.53% 0.187 304)
XYZxyz(45.3091, 32.1983, 96.7374)
Luminance0.3220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DFD #C0FD7D
analogous
#7D80FD #BA7DFD #FA7DFD
triadic
#BA7DFD #FDBA7D #7DFDBA
tetradic
#BA7DFD #FD7D80 #C0FD7D #7DFDFA
square
#BA7DFD #FD7D80 #C0FD7D #7DFDFA
split-complementary
#BA7DFD #FDFA7D #80FD7D
monochromatic
#7A04FB #9A41FC #BA7DFD #DAB9FE #EFE1FF

Accessibility & contrast

On white

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

On black

7.44
#BA7DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DFD
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DFD#FFFFFF#000000##000000
##BA7DFD1.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5498FF
Deuteranopia (green-blind)
#669AFA
Tritanopia (blue-blind)
#AE94B2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7dfd;
/* rgb */ color: rgb(186, 125, 253);
/* oklch */ color: oklch(70.5% 0.187 304.0);
Tailwind
colors: {
  custom: {
    50: '#d2a4ff',
    500: '#ba7dfd',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dfd;
$custom-light: #d2a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dfd",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 253
  },
  "hsl": {
    "h": 268.594,
    "s": 96.97,
    "l": 74.118
  },
  "oklch": {
    "l": 0.70529,
    "c": 0.18712,
    "h": 304
  },
  "luminance": 0.32198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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