#BA7CF9#BA7CF9

#BA7CF9 is a light, vivid violet. Relative luminance 0.317; OKLCH L 70.2% C 0.184 H 305.0°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#BA7CF9
RGBrgb(186, 124, 249)
HSLhsl(270, 91%, 73%)
HSVhsv(270, 50%, 98%)
CMYKcmyk(25.3%, 50.2%, 0%, 2.4%)
CIE-LABlab(63.09, 47.50, -53.65)
CIE-LCHlch(63.09, 71.66, 311.52°)
OKLaboklab(70.15% 0.1056 -0.1506)
OKLCHoklch(70.15% 0.184 305)
XYZxyz(44.5526, 31.6942, 93.3747)
Luminance0.3169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CF9 #BBF97C
analogous
#7C7CF9 #BA7CF9 #F97CF9
triadic
#BA7CF9 #F9BA7C #7CF9BA
tetradic
#BA7CF9 #F97C7C #BBF97C #7CF9F9
square
#BA7CF9 #F97C7C #BBF97C #7CF9F9
split-complementary
#BA7CF9 #F9F97C #7CF97C
monochromatic
#7C0BF0 #9B41F6 #BA7CF9 #D9B7FC #F0E2FE

Accessibility & contrast

On white

2.86
#BA7CF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#BA7CF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CF9
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CF9#FFFFFF#000000##000000
##BA7CF91.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5697FD
Deuteranopia (green-blind)
#6899F6
Tritanopia (blue-blind)
#B092AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7cf9;
/* rgb */ color: rgb(186, 124, 249);
/* oklch */ color: oklch(70.2% 0.184 305.0);
Tailwind
colors: {
  custom: {
    50: '#d1a3fc',
    500: '#ba7cf9',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cf9;
$custom-light: #d1a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cf9",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 249
  },
  "hsl": {
    "h": 269.76,
    "s": 91.241,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70152,
    "c": 0.18398,
    "h": 305
  },
  "luminance": 0.31694
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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