#BA73FC#BA73FC

#BA73FC is a light, highly saturated violet. Relative luminance 0.297; OKLCH L 69.0% C 0.201 H 305.7°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#BA73FC
RGBrgb(186, 115, 252)
HSLhsl(271, 96%, 72%)
HSVhsv(271, 54%, 99%)
CMYKcmyk(26.2%, 54.4%, 0%, 1.2%)
CIE-LABlab(61.42, 52.93, -57.96)
CIE-LCHlch(61.42, 78.49, 312.40°)
OKLaboklab(68.97% 0.1173 -0.1632)
OKLCHoklch(68.97% 0.201 305.7)
XYZxyz(43.9474, 29.7292, 95.4997)
Luminance0.2973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73FC #B5FC73
analogous
#7673FC #BA73FC #FC73F9
triadic
#BA73FC #FCBA73 #73FCBA
tetradic
#BA73FC #FC7673 #B5FC73 #73F9FC
square
#BA73FC #FC7673 #B5FC73 #73F9FC
split-complementary
#BA73FC #F9FC73 #73FC76
monochromatic
#7F05EF #9C37FB #BA73FC #D8AFFD #F0E1FE

Accessibility & contrast

On white

3.02
#BA73FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#BA73FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73FC
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73FC#FFFFFF#000000##000000
##BA73FC1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4392FF
Deuteranopia (green-blind)
#5C95F9
Tritanopia (blue-blind)
#AF8DAD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba73fc;
/* rgb */ color: rgb(186, 115, 252);
/* oklch */ color: oklch(69.0% 0.201 305.7);
Tailwind
colors: {
  custom: {
    50: '#d29efe',
    500: '#ba73fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba73fc;
$custom-light: #d29efe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73fc",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 252
  },
  "hsl": {
    "h": 271.095,
    "s": 95.804,
    "l": 71.961
  },
  "oklch": {
    "l": 0.6897,
    "c": 0.20098,
    "h": 305.7
  },
  "luminance": 0.29729
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA73FC

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

Preview Lab → · Contrast checker → · Palette generator →

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