#BA73E1#BA73E1

#BA73E1 is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.5% C 0.171 H 312.4°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#BA73E1
RGBrgb(186, 115, 225)
HSLhsl(279, 65%, 67%)
HSVhsv(279, 49%, 88%)
CMYKcmyk(17.3%, 48.9%, 0%, 11.8%)
CIE-LABlab(60.01, 46.95, -45.22)
CIE-LCHlch(60.01, 65.19, 316.08°)
OKLaboklab(67.47% 0.1152 -0.126)
OKLCHoklch(67.47% 0.171 312.4)
XYZxyz(39.9687, 28.1377, 74.5452)
Luminance0.2814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73E1 #9AE173
analogous
#8373E1 #BA73E1 #E173D1
triadic
#BA73E1 #E1BA73 #73E1BA
tetradic
#BA73E1 #E18373 #9AE173 #73D1E1
square
#BA73E1 #E18373 #9AE173 #73D1E1
split-complementary
#BA73E1 #D1E173 #73E183
monochromatic
#8126B3 #A141D6 #BA73E1 #D3A5EC #ECD8F7

Accessibility & contrast

On white

3.17
#BA73E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#BA73E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73E1
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73E1#FFFFFF#000000##000000
##BA73E11.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#598DE5
Deuteranopia (green-blind)
#6E92DE
Tritanopia (blue-blind)
#B684A0
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba73e1;
/* rgb */ color: rgb(186, 115, 225);
/* oklch */ color: oklch(67.5% 0.171 312.4);
Tailwind
colors: {
  custom: {
    50: '#d19deb',
    500: '#ba73e1',
    950: '#000000',
  },
}
SCSS
$custom: #ba73e1;
$custom-light: #d19deb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73e1",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 225
  },
  "hsl": {
    "h": 278.727,
    "s": 64.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.67474,
    "c": 0.17073,
    "h": 312.4
  },
  "luminance": 0.28137
}

Semantic roles & 50–950 ramp

primary
#BA73E1
secondary
#D3EAC6
accent
#CD1959
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA73E1

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

Preview Lab → · Contrast checker → · Palette generator →

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