#BA7AFF#BA7AFF

#BA7AFF is a light, vivid violet. Relative luminance 0.316; OKLCH L 70.2% C 0.194 H 304.1°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#BA7AFF
RGBrgb(186, 122, 255)
HSLhsl(269, 100%, 74%)
HSVhsv(269, 52%, 100%)
CMYKcmyk(27.1%, 52.2%, 0%, 0%)
CIE-LABlab(62.99, 49.95, -57.10)
CIE-LCHlch(62.99, 75.87, 311.18°)
OKLaboklab(70.18% 0.1087 -0.1607)
OKLCHoklch(70.18% 0.194 304.1)
XYZxyz(45.2553, 31.5783, 98.2994)
Luminance0.3158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AFF #BFFF7A
analogous
#7A7DFF #BA7AFF #FC7AFF
triadic
#BA7AFF #FFBA7A #7AFFBA
tetradic
#BA7AFF #FF7A7D #BFFF7A #7AFFFC
square
#BA7AFF #FF7A7D #BFFF7A #7AFFFC
split-complementary
#BA7AFF #FFFC7A #7DFF7A
monochromatic
#7B00FF #9A3DFF #BA7AFF #DAB7FF #EFE0FF

Accessibility & contrast

On white

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

On black

7.32
#BA7AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AFF
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AFF#FFFFFF#000000##000000
##BA7AFF1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D97FF
Deuteranopia (green-blind)
#6198FC
Tritanopia (blue-blind)
#AE93B1
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7aff;
/* rgb */ color: rgb(186, 122, 255);
/* oklch */ color: oklch(70.2% 0.194 304.1);
Tailwind
colors: {
  custom: {
    50: '#d2a2ff',
    500: '#ba7aff',
    950: '#000000',
  },
}
SCSS
$custom: #ba7aff;
$custom-light: #d2a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7aff",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 268.872,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70183,
    "c": 0.19398,
    "h": 304.1
  },
  "luminance": 0.31578
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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