#BA73FE#BA73FE

#BA73FE is a light, highly saturated violet. Relative luminance 0.299; OKLCH L 69.1% C 0.203 H 305.3°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#BA73FE
RGBrgb(186, 115, 254)
HSLhsl(271, 99%, 72%)
HSVhsv(271, 55%, 100%)
CMYKcmyk(26.8%, 54.7%, 0%, 0.4%)
CIE-LABlab(61.53, 53.39, -58.89)
CIE-LCHlch(61.53, 79.48, 312.19°)
OKLaboklab(69.09% 0.1174 -0.1659)
OKLCHoklch(69.09% 0.203 305.3)
XYZxyz(44.2660, 29.8566, 97.1776)
Luminance0.2986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73FE #B7FE73
analogous
#7473FE #BA73FE #FE73FD
triadic
#BA73FE #FEBA73 #73FEBA
tetradic
#BA73FE #FE7473 #B7FE73 #73FDFE
square
#BA73FE #FE7473 #B7FE73 #73FDFE
split-complementary
#BA73FE #FDFE73 #73FE74
monochromatic
#7E02F5 #9C36FE #BA73FE #D8B0FE #F0E1FF

Accessibility & contrast

On white

3.01
#BA73FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#BA73FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73FE
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73FE#FFFFFF#000000##000000
##BA73FE1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4192FF
Deuteranopia (green-blind)
#5A95FB
Tritanopia (blue-blind)
#AF8DAE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba73fe;
/* rgb */ color: rgb(186, 115, 254);
/* oklch */ color: oklch(69.1% 0.203 305.3);
Tailwind
colors: {
  custom: {
    50: '#d29eff',
    500: '#ba73fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba73fe;
$custom-light: #d29eff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73fe",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 254
  },
  "hsl": {
    "h": 270.647,
    "s": 98.582,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69087,
    "c": 0.20323,
    "h": 305.3
  },
  "luminance": 0.29856
}

Semantic roles & 50–950 ramp

primary
#BA73FE
secondary
#E5F7D4
accent
#E60070
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA73FE

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

Preview Lab → · Contrast checker → · Palette generator →

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