#BA7DF9#BA7DF9

#BA7DF9 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.3% C 0.182 H 304.9°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#BA7DF9
RGBrgb(186, 125, 249)
HSLhsl(270, 91%, 73%)
HSVhsv(270, 50%, 98%)
CMYKcmyk(25.3%, 49.8%, 0%, 2.4%)
CIE-LABlab(63.30, 46.96, -53.32)
CIE-LCHlch(63.30, 71.06, 311.37°)
OKLaboklab(70.31% 0.1043 -0.1497)
OKLCHoklch(70.31% 0.182 304.9)
XYZxyz(44.6786, 31.9461, 93.4166)
Luminance0.3195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DF9 #BCF97D
analogous
#7D7EF9 #BA7DF9 #F87DF9
triadic
#BA7DF9 #F9BA7D #7DF9BA
tetradic
#BA7DF9 #F97D7E #BCF97D #7DF9F8
square
#BA7DF9 #F97D7E #BCF97D #7DF9F8
split-complementary
#BA7DF9 #F9F87D #7EF97D
monochromatic
#7C0BF0 #9B42F6 #BA7DF9 #D9B7FC #EFE2FE

Accessibility & contrast

On white

2.84
#BA7DF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#BA7DF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DF9
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DF9#FFFFFF#000000##000000
##BA7DF91.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5897FD
Deuteranopia (green-blind)
#6999F6
Tritanopia (blue-blind)
#AF93B0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7df9;
/* rgb */ color: rgb(186, 125, 249);
/* oklch */ color: oklch(70.3% 0.182 304.9);
Tailwind
colors: {
  custom: {
    50: '#d1a4fc',
    500: '#ba7df9',
    950: '#000000',
  },
}
SCSS
$custom: #ba7df9;
$custom-light: #d1a4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7df9",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 249
  },
  "hsl": {
    "h": 269.516,
    "s": 91.176,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70307,
    "c": 0.18244,
    "h": 304.9
  },
  "luminance": 0.31946
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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