#BA7DF7#BA7DF7

#BA7DF7 is a light, vivid violet. Relative luminance 0.318; OKLCH L 70.2% C 0.180 H 305.3°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#BA7DF7
RGBrgb(186, 125, 247)
HSLhsl(270, 88%, 73%)
HSVhsv(270, 49%, 97%)
CMYKcmyk(24.7%, 49.4%, 0%, 3.1%)
CIE-LABlab(63.20, 46.51, -52.38)
CIE-LCHlch(63.20, 70.05, 311.60°)
OKLaboklab(70.2% 0.1041 -0.1469)
OKLCHoklch(70.2% 0.18 305.3)
XYZxyz(44.3683, 31.8220, 91.7825)
Luminance0.3182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DF7 #BAF77D
analogous
#7D7DF7 #BA7DF7 #F77DF7
triadic
#BA7DF7 #F7BA7D #7DF7BA
tetradic
#BA7DF7 #F77D7D #BAF77D #7DF7F7
square
#BA7DF7 #F77D7D #BAF77D #7DF7F7
split-complementary
#BA7DF7 #F7F77D #7DF77D
monochromatic
#7D0EEB #9B43F3 #BA7DF7 #D9B7FB #F0E2FD

Accessibility & contrast

On white

2.85
#BA7DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#BA7DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DF7
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DF7#FFFFFF#000000##000000
##BA7DF71.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5997FB
Deuteranopia (green-blind)
#6A99F4
Tritanopia (blue-blind)
#B093AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7df7;
/* rgb */ color: rgb(186, 125, 247);
/* oklch */ color: oklch(70.2% 0.180 305.3);
Tailwind
colors: {
  custom: {
    50: '#d1a4fa',
    500: '#ba7df7',
    950: '#000000',
  },
}
SCSS
$custom: #ba7df7;
$custom-light: #d1a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7df7",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 270,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.70198,
    "c": 0.18009,
    "h": 305.3
  },
  "luminance": 0.31822
}

Semantic roles & 50–950 ramp

primary
#BA7DF7
secondary
#E6F5D6
accent
#E50073
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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