#BA7FF3#BA7FF3

#BA7FF3 is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.3% C 0.172 H 305.9°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#BA7FF3
RGBrgb(186, 127, 243)
HSLhsl(271, 83%, 73%)
HSVhsv(271, 48%, 95%)
CMYKcmyk(23.5%, 47.7%, 0%, 4.7%)
CIE-LABlab(63.42, 44.52, -49.83)
CIE-LCHlch(63.42, 66.82, 311.78°)
OKLaboklab(70.3% 0.1011 -0.1395)
OKLCHoklch(70.3% 0.172 305.9)
XYZxyz(44.0134, 32.0892, 88.6518)
Luminance0.3209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FF3 #B8F37F
analogous
#807FF3 #BA7FF3 #F37FF2
triadic
#BA7FF3 #F3BA7F #7FF3BA
tetradic
#BA7FF3 #F3807F #B8F37F #7FF2F3
square
#BA7FF3 #F3807F #B8F37F #7FF2F3
split-complementary
#BA7FF3 #F2F37F #7FF380
monochromatic
#7E15E2 #9C47EE #BA7FF3 #D8B7F8 #F0E3FC

Accessibility & contrast

On white

2.83
#BA7FF3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#BA7FF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FF3
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FF3#FFFFFF#000000##000000
##BA7FF31.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F98F7
Deuteranopia (green-blind)
#6F9AF0
Tritanopia (blue-blind)
#B193AE
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7ff3;
/* rgb */ color: rgb(186, 127, 243);
/* oklch */ color: oklch(70.3% 0.172 305.9);
Tailwind
colors: {
  custom: {
    50: '#d1a5f7',
    500: '#ba7ff3',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ff3;
$custom-light: #d1a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ff3",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 243
  },
  "hsl": {
    "h": 270.517,
    "s": 82.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.70296,
    "c": 0.17226,
    "h": 305.9
  },
  "luminance": 0.32089
}

Semantic roles & 50–950 ramp

primary
#BA7FF3
secondary
#E5F4D7
accent
#DF0671
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7FF3

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

Preview Lab → · Contrast checker → · Palette generator →

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