#BA7AF7#BA7AF7

#BA7AF7 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.7% C 0.185 H 305.8°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#BA7AF7
RGBrgb(186, 122, 247)
HSLhsl(271, 89%, 72%)
HSVhsv(271, 51%, 97%)
CMYKcmyk(24.7%, 50.6%, 0%, 3.1%)
CIE-LABlab(62.57, 48.11, -53.38)
CIE-LCHlch(62.57, 71.86, 312.03°)
OKLaboklab(69.73% 0.1081 -0.1498)
OKLCHoklch(69.73% 0.185 305.8)
XYZxyz(43.9942, 31.0739, 91.6578)
Luminance0.3107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AF7 #B7F77A
analogous
#7C7AF7 #BA7AF7 #F77AF5
triadic
#BA7AF7 #F7BA7A #7AF7BA
tetradic
#BA7AF7 #F77C7A #B7F77A #7AF5F7
square
#BA7AF7 #F77C7A #B7F77A #7AF5F7
split-complementary
#BA7AF7 #F5F77A #7AF77C
monochromatic
#7E0EE9 #9C40F4 #BA7AF7 #D8B4FA #F0E2FD

Accessibility & contrast

On white

2.91
#BA7AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#BA7AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AF7
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AF7#FFFFFF#000000##000000
##BA7AF71.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5495FB
Deuteranopia (green-blind)
#6798F4
Tritanopia (blue-blind)
#B090AD
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7af7;
/* rgb */ color: rgb(186, 122, 247);
/* oklch */ color: oklch(69.7% 0.185 305.8);
Tailwind
colors: {
  custom: {
    50: '#d1a2fa',
    500: '#ba7af7',
    950: '#000000',
  },
}
SCSS
$custom: #ba7af7;
$custom-light: #d1a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7af7",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 270.72,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69733,
    "c": 0.18472,
    "h": 305.8
  },
  "luminance": 0.31074
}

Semantic roles & 50–950 ramp

primary
#BA7AF7
secondary
#E5F5D6
accent
#E50070
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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