#BA7AE4#BA7AE4

#BA7AE4 is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.7% C 0.163 H 310.6°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#BA7AE4
RGBrgb(186, 122, 228)
HSLhsl(276, 66%, 69%)
HSVhsv(276, 46%, 89%)
CMYKcmyk(18.4%, 46.5%, 0%, 10.6%)
CIE-LABlab(61.62, 43.87, -44.36)
CIE-LCHlch(61.62, 62.38, 314.68°)
OKLaboklab(68.72% 0.106 -0.1236)
OKLCHoklch(68.72% 0.163 310.6)
XYZxyz(41.2103, 29.9603, 76.9957)
Luminance0.2996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AE4 #A4E47A
analogous
#857AE4 #BA7AE4 #E47AD9
triadic
#BA7AE4 #E4BA7A #7AE4BA
tetradic
#BA7AE4 #E4857A #A4E47A #7AD9E4
square
#BA7AE4 #E4857A #A4E47A #7AD9E4
split-complementary
#BA7AE4 #D9E47A #7AE485
monochromatic
#8126BD #A047DA #BA7AE4 #D4ADEE #EFE0F9

Accessibility & contrast

On white

3.00
#BA7AE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#BA7AE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7AE4
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AE4#FFFFFF#000000##000000
##BA7AE41.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6192E8
Deuteranopia (green-blind)
#7396E1
Tritanopia (blue-blind)
#B58BA4
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7ae4;
/* rgb */ color: rgb(186, 122, 228);
/* oklch */ color: oklch(68.7% 0.163 310.6);
Tailwind
colors: {
  custom: {
    50: '#d1a2ed',
    500: '#ba7ae4',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ae4;
$custom-light: #d1a2ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ae4",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 228
  },
  "hsl": {
    "h": 276.226,
    "s": 66.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.68718,
    "c": 0.16277,
    "h": 310.6
  },
  "luminance": 0.2996
}

Semantic roles & 50–950 ramp

primary
#BA7AE4
secondary
#DAEDCD
accent
#CE1760
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA7AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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