#BA7AFE#BA7AFE

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

Color values

HEX#BA7AFE
RGBrgb(186, 122, 254)
HSLhsl(269, 99%, 74%)
HSVhsv(269, 52%, 100%)
CMYKcmyk(26.8%, 52%, 0%, 0.4%)
CIE-LABlab(62.94, 49.72, -56.64)
CIE-LCHlch(62.94, 75.36, 311.28°)
OKLaboklab(70.13% 0.1086 -0.1593)
OKLCHoklch(70.13% 0.193 304.3)
XYZxyz(45.0947, 31.5141, 97.4539)
Luminance0.3151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AFE #BEFE7A
analogous
#7A7CFE #BA7AFE #FC7AFE
triadic
#BA7AFE #FEBA7A #7AFEBA
tetradic
#BA7AFE #FE7A7C #BEFE7A #7AFEFC
square
#BA7AFE #FE7A7C #BEFE7A #7AFEFC
split-complementary
#BA7AFE #FEFC7A #7CFE7A
monochromatic
#7B02FC #9A3DFE #BA7AFE #DAB7FE #EFE1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA7AFE#FFFFFF#000000##000000
##BA7AFE1.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)
#4E97FF
Deuteranopia (green-blind)
#6298FB
Tritanopia (blue-blind)
#AE92B1
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7afe;
/* rgb */ color: rgb(186, 122, 254);
/* oklch */ color: oklch(70.1% 0.193 304.3);
Tailwind
colors: {
  custom: {
    50: '#d2a2ff',
    500: '#ba7afe',
    950: '#000000',
  },
}
SCSS
$custom: #ba7afe;
$custom-light: #d2a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7afe",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 269.091,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70126,
    "c": 0.19283,
    "h": 304.3
  },
  "luminance": 0.31514
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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