#BA7BF9#BA7BF9

#BA7BF9 is a light, vivid violet. Relative luminance 0.314; OKLCH L 70.0% C 0.186 H 305.2°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#BA7BF9
RGBrgb(186, 123, 249)
HSLhsl(270, 91%, 73%)
HSVhsv(270, 51%, 98%)
CMYKcmyk(25.3%, 50.6%, 0%, 2.4%)
CIE-LABlab(62.88, 48.03, -53.98)
CIE-LCHlch(62.88, 72.26, 311.66°)
OKLaboklab(70% 0.1069 -0.1516)
OKLCHoklch(70% 0.186 305.2)
XYZxyz(44.4279, 31.4448, 93.3331)
Luminance0.3145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BF9 #BAF97B
analogous
#7B7BF9 #BA7BF9 #F97BF9
triadic
#BA7BF9 #F9BA7B #7BF9BA
tetradic
#BA7BF9 #F97B7B #BAF97B #7BF9F9
square
#BA7BF9 #F97B7B #BAF97B #7BF9F9
split-complementary
#BA7BF9 #F9F97B #7BF97B
monochromatic
#7D0BEF #9B40F6 #BA7BF9 #D9B6FC #F0E2FE

Accessibility & contrast

On white

2.88
#BA7BF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#BA7BF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BF9
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BF9#FFFFFF#000000##000000
##BA7BF91.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5496FD
Deuteranopia (green-blind)
#6798F6
Tritanopia (blue-blind)
#B092AF
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7bf9;
/* rgb */ color: rgb(186, 123, 249);
/* oklch */ color: oklch(70.0% 0.186 305.2);
Tailwind
colors: {
  custom: {
    50: '#d1a3fc',
    500: '#ba7bf9',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bf9;
$custom-light: #d1a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bf9",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 249
  },
  "hsl": {
    "h": 270,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69998,
    "c": 0.18551,
    "h": 305.2
  },
  "luminance": 0.31445
}

Semantic roles & 50–950 ramp

primary
#BA7BF9
secondary
#E6F6D5
accent
#E60073
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BF9

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

Preview Lab → · Contrast checker → · Palette generator →

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