#BA7FFA#BA7FFA

#BA7FFA is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.7% C 0.181 H 304.3°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#BA7FFA
RGBrgb(186, 127, 250)
HSLhsl(269, 92%, 74%)
HSVhsv(269, 49%, 98%)
CMYKcmyk(25.6%, 49.2%, 0%, 2%)
CIE-LABlab(63.77, 46.12, -53.12)
CIE-LCHlch(63.77, 70.35, 310.97°)
OKLaboklab(70.68% 0.1018 -0.1491)
OKLCHoklch(70.68% 0.181 304.3)
XYZxyz(45.0907, 32.5201, 94.3255)
Luminance0.3252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FFA #BFFA7F
analogous
#7F82FA #BA7FFA #F77FFA
triadic
#BA7FFA #FABA7F #7FFABA
tetradic
#BA7FFA #FA7F82 #BFFA7F #7FFAF7
square
#BA7FFA #FA7F82 #BFFA7F #7FFAF7
split-complementary
#BA7FFA #FAF77F #82FA7F
monochromatic
#7B0AF5 #9A44F8 #BA7FFA #DABAFC #EFE2FE

Accessibility & contrast

On white

2.80
#BA7FFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#BA7FFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FFA
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FFA#FFFFFF#000000##000000
##BA7FFA1.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A99FE
Deuteranopia (green-blind)
#6A9BF7
Tritanopia (blue-blind)
#AF95B1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7ffa;
/* rgb */ color: rgb(186, 127, 250);
/* oklch */ color: oklch(70.7% 0.181 304.3);
Tailwind
colors: {
  custom: {
    50: '#d1a5fc',
    500: '#ba7ffa',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ffa;
$custom-light: #d1a5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ffa",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 250
  },
  "hsl": {
    "h": 268.78,
    "s": 92.481,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70675,
    "c": 0.18053,
    "h": 304.3
  },
  "luminance": 0.3252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA7FFA

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

Preview Lab → · Contrast checker → · Palette generator →

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