#BA76FB#BA76FB

#BA76FB is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.4% C 0.195 H 305.5°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#BA76FB
RGBrgb(186, 118, 251)
HSLhsl(271, 94%, 72%)
HSVhsv(271, 53%, 98%)
CMYKcmyk(25.9%, 53%, 0%, 1.6%)
CIE-LABlab(61.96, 51.14, -56.54)
CIE-LCHlch(61.96, 76.24, 312.13°)
OKLaboklab(69.35% 0.1135 -0.159)
OKLCHoklch(69.35% 0.195 305.5)
XYZxyz(44.1370, 30.3613, 94.7832)
Luminance0.3036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA76FB #B7FB76
analogous
#7876FB #BA76FB #FB76F9
triadic
#BA76FB #FBBA76 #76FBBA
tetradic
#BA76FB #FB7876 #B7FB76 #76F9FB
square
#BA76FB #FB7876 #B7FB76 #76F9FB
split-complementary
#BA76FB #F9FB76 #76FB78
monochromatic
#7E07F0 #9C3BF9 #BA76FB #D8B1FD #F0E1FE

Accessibility & contrast

On white

2.97
#BA76FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#BA76FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA76FB
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA76FB#FFFFFF#000000##000000
##BA76FB1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A94FF
Deuteranopia (green-blind)
#6096F8
Tritanopia (blue-blind)
#AF8EAE
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba76fb;
/* rgb */ color: rgb(186, 118, 251);
/* oklch */ color: oklch(69.4% 0.195 305.5);
Tailwind
colors: {
  custom: {
    50: '#d29ffd',
    500: '#ba76fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba76fb;
$custom-light: #d29ffd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba76fb",
  "rgb": {
    "r": 186,
    "g": 118,
    "b": 251
  },
  "hsl": {
    "h": 270.677,
    "s": 94.326,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69354,
    "c": 0.19538,
    "h": 305.5
  },
  "luminance": 0.30361
}

Semantic roles & 50–950 ramp

primary
#BA76FB
secondary
#E5F6D5
accent
#E60070
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140F18
muted
#837E86

Preview Lab

Preview with #BA76FB

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

Preview Lab → · Contrast checker → · Palette generator →

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