#BA7AF8#BA7AF8

#BA7AF8 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.8% C 0.186 H 305.6°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#BA7AF8
RGBrgb(186, 122, 248)
HSLhsl(270, 90%, 73%)
HSVhsv(270, 51%, 97%)
CMYKcmyk(25%, 50.8%, 0%, 2.7%)
CIE-LABlab(62.62, 48.34, -53.85)
CIE-LCHlch(62.62, 72.36, 311.91°)
OKLaboklab(69.79% 0.1081 -0.1512)
OKLCHoklch(69.79% 0.186 305.6)
XYZxyz(44.1489, 31.1358, 92.4727)
Luminance0.3114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7AF8 #B8F87A
analogous
#7B7AF8 #BA7AF8 #F87AF7
triadic
#BA7AF8 #F8BA7A #7AF8BA
tetradic
#BA7AF8 #F87B7A #B8F87A #7AF7F8
square
#BA7AF8 #F87B7A #B8F87A #7AF7F8
split-complementary
#BA7AF8 #F7F87A #7AF87B
monochromatic
#7E0CEB #9C40F5 #BA7AF8 #D8B4FB #F0E2FD

Accessibility & contrast

On white

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

On black

7.23
#BA7AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7AF8
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7AF8#FFFFFF#000000##000000
##BA7AF81.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5395FC
Deuteranopia (green-blind)
#6698F5
Tritanopia (blue-blind)
#B091AE
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7af8;
/* rgb */ color: rgb(186, 122, 248);
/* oklch */ color: oklch(69.8% 0.186 305.6);
Tailwind
colors: {
  custom: {
    50: '#d1a2fb',
    500: '#ba7af8',
    950: '#000000',
  },
}
SCSS
$custom: #ba7af8;
$custom-light: #d1a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7af8",
  "rgb": {
    "r": 186,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 270.476,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69789,
    "c": 0.18588,
    "h": 305.6
  },
  "luminance": 0.31135
}

Semantic roles & 50–950 ramp

primary
#BA7AF8
secondary
#E5F6D5
accent
#E60071
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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