#BA7BF7#BA7BF7

#BA7BF7 is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.9% C 0.183 H 305.6°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#BA7BF7
RGBrgb(186, 123, 247)
HSLhsl(270, 89%, 73%)
HSVhsv(270, 50%, 97%)
CMYKcmyk(24.7%, 50.2%, 0%, 3.1%)
CIE-LABlab(62.78, 47.58, -53.05)
CIE-LCHlch(62.78, 71.26, 311.89°)
OKLaboklab(69.89% 0.1068 -0.1488)
OKLCHoklch(69.89% 0.183 305.6)
XYZxyz(44.1176, 31.3207, 91.6990)
Luminance0.3132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BF7 #B8F77B
analogous
#7C7BF7 #BA7BF7 #F77BF6
triadic
#BA7BF7 #F7BA7B #7BF7BA
tetradic
#BA7BF7 #F77C7B #B8F77B #7BF6F7
square
#BA7BF7 #F77C7B #B8F77B #7BF6F7
split-complementary
#BA7BF7 #F6F77B #7BF77C
monochromatic
#7E0EE9 #9C41F4 #BA7BF7 #D8B5FA #F0E2FD

Accessibility & contrast

On white

2.89
#BA7BF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#BA7BF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BF7
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BF7#FFFFFF#000000##000000
##BA7BF71.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5696FB
Deuteranopia (green-blind)
#6898F4
Tritanopia (blue-blind)
#B091AE
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7bf7;
/* rgb */ color: rgb(186, 123, 247);
/* oklch */ color: oklch(69.9% 0.183 305.6);
Tailwind
colors: {
  custom: {
    50: '#d1a3fa',
    500: '#ba7bf7',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bf7;
$custom-light: #d1a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bf7",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 247
  },
  "hsl": {
    "h": 270.484,
    "s": 88.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69887,
    "c": 0.18318,
    "h": 305.6
  },
  "luminance": 0.3132
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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