#BA7BF6#BA7BF6

#BA7BF6 is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.8% C 0.182 H 305.9°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#BA7BF6
RGBrgb(186, 123, 246)
HSLhsl(271, 87%, 72%)
HSVhsv(271, 50%, 96%)
CMYKcmyk(24.4%, 50%, 0%, 3.5%)
CIE-LABlab(62.73, 47.35, -52.58)
CIE-LCHlch(62.73, 70.76, 312.00°)
OKLaboklab(69.83% 0.1067 -0.1475)
OKLCHoklch(69.83% 0.182 305.9)
XYZxyz(43.9637, 31.2592, 90.8885)
Luminance0.3126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BF6 #B7F67B
analogous
#7D7BF6 #BA7BF6 #F67BF4
triadic
#BA7BF6 #F6BA7B #7BF6BA
tetradic
#BA7BF6 #F67D7B #B7F67B #7BF4F6
square
#BA7BF6 #F67D7B #B7F67B #7BF4F6
split-complementary
#BA7BF6 #F4F67B #7BF67D
monochromatic
#7E10E7 #9C42F2 #BA7BF6 #D8B4FA #F0E2FD

Accessibility & contrast

On white

2.90
#BA7BF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#BA7BF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BF6
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BF6#FFFFFF#000000##000000
##BA7BF61.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5796FA
Deuteranopia (green-blind)
#6998F3
Tritanopia (blue-blind)
#B091AD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7bf6;
/* rgb */ color: rgb(186, 123, 246);
/* oklch */ color: oklch(69.8% 0.182 305.9);
Tailwind
colors: {
  custom: {
    50: '#d1a3fa',
    500: '#ba7bf6',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bf6;
$custom-light: #d1a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bf6",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 246
  },
  "hsl": {
    "h": 270.732,
    "s": 87.234,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69832,
    "c": 0.18202,
    "h": 305.9
  },
  "luminance": 0.31259
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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