#BA7FFB#BA7FFB

#BA7FFB is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.7% C 0.182 H 304.1°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#BA7FFB
RGBrgb(186, 127, 251)
HSLhsl(269, 94%, 74%)
HSVhsv(269, 49%, 98%)
CMYKcmyk(25.9%, 49.4%, 0%, 1.6%)
CIE-LABlab(63.82, 46.35, -53.59)
CIE-LCHlch(63.82, 70.85, 310.86°)
OKLaboklab(70.73% 0.1019 -0.1504)
OKLCHoklch(70.73% 0.182 304.1)
XYZxyz(45.2479, 32.5830, 95.1535)
Luminance0.3258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FFB #C0FB7F
analogous
#7F82FB #BA7FFB #F87FFB
triadic
#BA7FFB #FBBA7F #7FFBBA
tetradic
#BA7FFB #FB7F82 #C0FB7F #7FFBF8
square
#BA7FFB #FB7F82 #C0FB7F #7FFBF8
split-complementary
#BA7FFB #FBF87F #82FB7F
monochromatic
#7A08F7 #9A44F9 #BA7FFB #DABAFD #EFE1FE

Accessibility & contrast

On white

2.79
#BA7FFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#BA7FFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FFB
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FFB#FFFFFF#000000##000000
##BA7FFB1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5999FF
Deuteranopia (green-blind)
#6A9BF8
Tritanopia (blue-blind)
#AF95B1
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba7ffb;
/* rgb */ color: rgb(186, 127, 251);
/* oklch */ color: oklch(70.7% 0.182 304.1);
Tailwind
colors: {
  custom: {
    50: '#d1a5fd',
    500: '#ba7ffb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ffb;
$custom-light: #d1a5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ffb",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 251
  },
  "hsl": {
    "h": 268.548,
    "s": 93.939,
    "l": 74.118
  },
  "oklch": {
    "l": 0.7073,
    "c": 0.18171,
    "h": 304.1
  },
  "luminance": 0.32583
}

Semantic roles & 50–950 ramp

primary
#BA7FFB
secondary
#E6F6D5
accent
#E60078
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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