#BA73F8#BA73F8

#BA73F8 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.7% C 0.196 H 306.6°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#BA73F8
RGBrgb(186, 115, 248)
HSLhsl(272, 90%, 71%)
HSVhsv(272, 54%, 97%)
CMYKcmyk(25%, 53.6%, 0%, 2.7%)
CIE-LABlab(61.20, 52.02, -56.11)
CIE-LCHlch(61.20, 76.51, 312.84°)
OKLaboklab(68.74% 0.1171 -0.1578)
OKLCHoklch(68.74% 0.196 306.6)
XYZxyz(43.3202, 29.4783, 92.1965)
Luminance0.2948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73F8 #B1F873
analogous
#7773F8 #BA73F8 #F873F3
triadic
#BA73F8 #F8BA73 #73F8BA
tetradic
#BA73F8 #F87773 #B1F873 #73F3F8
square
#BA73F8 #F87773 #B1F873 #73F3F8
split-complementary
#BA73F8 #F3F873 #73F877
monochromatic
#800BE5 #9D39F5 #BA73F8 #D7ADFB #F1E2FE

Accessibility & contrast

On white

3.05
#BA73F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#BA73F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73F8
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73F8#FFFFFF#000000##000000
##BA73F81.003.056.906.90
#FFFFFF3.051.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4791FC
Deuteranopia (green-blind)
#5F94F5
Tritanopia (blue-blind)
#B08BAB
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba73f8;
/* rgb */ color: rgb(186, 115, 248);
/* oklch */ color: oklch(68.7% 0.196 306.6);
Tailwind
colors: {
  custom: {
    50: '#d29efb',
    500: '#ba73f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba73f8;
$custom-light: #d29efb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73f8",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 248
  },
  "hsl": {
    "h": 272.03,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.68739,
    "c": 0.19648,
    "h": 306.6
  },
  "luminance": 0.29478
}

Semantic roles & 50–950 ramp

primary
#BA73F8
secondary
#E2F5D2
accent
#E6006B
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA73F8

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

Preview Lab → · Contrast checker → · Palette generator →

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